Skip to content

Instantly share code, notes, and snippets.

View bartk89's full-sized avatar
🔥
This is fine

Bart K bartk89

🔥
This is fine
View GitHub Profile
@bartk89
bartk89 / tricky.dart
Created October 22, 2020 07:35
Tricky Bloc
class AccountsTab extends StatelessWidget {
final AccountBloc Function(BuildContext) _example;
AccountsTab({AccountBloc Function(BuildContext) example}): this._example=example;
@override
Widget build(BuildContext context) {
return MultiRepositoryProvider(
providers: [
@bartk89
bartk89 / accounts.dart
Created October 22, 2020 07:17
Widget
class AccountsTab extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MultiRepositoryProvider(
providers: [
RepositoryProvider<OfficersRepository>(
create: (_) => OfficersRepository(context.repository<ApiHttpClient>()),
)
],
@bartk89
bartk89 / keygen.sh
Created October 22, 2020 06:29
Keygen
keytool -genkey -v -keystore appdistribution.keystore -alias bbh -keyalg RSA -keysize 2048 -validity 10000
@bartk89
bartk89 / build.gradle
Created October 22, 2020 06:06
Distribution of Android app
// In your android/app/build.gradle
// below other plugins
apply plugin: 'com.google.firebase.appdistribution'
android {
// std config ommited
buildTypes {
@bartk89
bartk89 / build.gradle
Last active October 22, 2020 06:07
Firebase distribution build type
// In your android/app/build.gradle
android {
// std config ommited
signingConfigs {
appDistribution {
storeFile file('../appdistribution.keystore')
storePassword 'bbh'