Skip to content

Commit f9bfa7d

Browse files
committed
Update Android Gradle version for latest beta + Android Toolchain
1 parent 68ef84a commit f9bfa7d

File tree

25 files changed

+60
-36
lines changed

25 files changed

+60
-36
lines changed

example/bloc_flutter/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.0.1'
8+
classpath 'com.android.tools.build:gradle:3.1.2'
99
classpath 'com.google.gms:google-services:3.1.2'
1010
}
1111
}

example/bloc_flutter/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

example/built_redux/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.0.1'
8+
classpath 'com.android.tools.build:gradle:3.1.2'
99
}
1010
}
1111

example/built_redux/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

example/firestore_redux/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.0.1'
8+
classpath 'com.android.tools.build:gradle:3.1.2'
99
classpath 'com.google.gms:google-services:3.2.1'
1010
}
1111
}

example/firestore_redux/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

example/firestore_redux/lib/main.dart

+2-10
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,8 @@ class ReduxApp extends StatelessWidget {
6161
FirestoreReduxLocalizationsDelegate(),
6262
],
6363
routes: {
64-
ArchSampleRoutes.home: (context) {
65-
return StoreBuilder<AppState>(
66-
builder: (context, store) {
67-
return HomeScreen();
68-
},
69-
);
70-
},
71-
ArchSampleRoutes.addTodo: (context) {
72-
return AddTodo();
73-
},
64+
ArchSampleRoutes.home: (context) => HomeScreen(),
65+
ArchSampleRoutes.addTodo: (context) => AddTodo(),
7466
},
7567
),
7668
);

example/inherited_widget/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
jcenter()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:3.0.1'
7+
classpath 'com.android.tools.build:gradle:3.1.2'
88
}
99
}
1010

example/inherited_widget/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

example/mvi_flutter/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.0.1'
8+
classpath 'com.android.tools.build:gradle:3.1.2'
99
classpath 'com.google.gms:google-services:3.1.2'
1010
}
1111
}

example/mvi_flutter/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

example/mvu/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.0.1'
8+
classpath 'com.android.tools.build:gradle:3.1.2'
99
}
1010
}
1111

example/mvu/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

example/redux/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.0.1'
8+
classpath 'com.android.tools.build:gradle:3.1.2'
99
}
1010
}
1111

example/redux/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

example/redux/lib/containers/stats.dart

+17
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Stats extends StatelessWidget {
1616
@override
1717
Widget build(BuildContext context) {
1818
return StoreConnector<AppState, _ViewModel>(
19+
distinct: true,
1920
converter: _ViewModel.fromStore,
2021
builder: (context, vm) {
2122
return StatsCounter(
@@ -39,4 +40,20 @@ class _ViewModel {
3940
numCompleted: numCompletedSelector(todosSelector(store.state)),
4041
);
4142
}
43+
44+
@override
45+
bool operator ==(Object other) =>
46+
identical(this, other) ||
47+
other is _ViewModel &&
48+
runtimeType == other.runtimeType &&
49+
numCompleted == other.numCompleted &&
50+
numActive == other.numActive;
51+
52+
@override
53+
int get hashCode => numCompleted.hashCode ^ numActive.hashCode;
54+
55+
@override
56+
String toString() {
57+
return '_ViewModel{numCompleted: $numCompleted, numActive: $numActive}';
58+
}
4259
}

example/redux/lib/main.dart

+3-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ class ReduxApp extends StatelessWidget {
3838
],
3939
routes: {
4040
ArchSampleRoutes.home: (context) {
41-
return StoreBuilder<AppState>(
42-
onInit: (store) => store.dispatch(LoadTodosAction()),
43-
builder: (context, store) {
44-
return HomeScreen();
41+
return HomeScreen(
42+
onInit: () {
43+
StoreProvider.of<AppState>(context).dispatch(LoadTodosAction());
4544
},
4645
);
4746
},

example/redux/lib/presentation/home_screen.dart

+17-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,23 @@ import 'package:redux_sample/containers/tab_selector.dart';
1313
import 'package:redux_sample/localization.dart';
1414
import 'package:redux_sample/models/models.dart';
1515

16-
class HomeScreen extends StatelessWidget {
17-
HomeScreen() : super(key: ArchSampleKeys.homeScreen);
16+
class HomeScreen extends StatefulWidget {
17+
final void Function() onInit;
18+
19+
HomeScreen({@required this.onInit}) : super(key: ArchSampleKeys.homeScreen);
20+
21+
@override
22+
HomeScreenState createState() {
23+
return new HomeScreenState();
24+
}
25+
}
26+
27+
class HomeScreenState extends State<HomeScreen> {
28+
@override
29+
void initState() {
30+
widget.onInit();
31+
super.initState();
32+
}
1833

1934
@override
2035
Widget build(BuildContext context) {

example/scoped_model/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.0.1'
8+
classpath 'com.android.tools.build:gradle:3.1.2'
99
}
1010
}
1111

example/scoped_model/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

example/simple_bloc_flutter/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.0.1'
8+
classpath 'com.android.tools.build:gradle:3.1.2'
99
classpath 'com.google.gms:google-services:3.2.1'
1010
}
1111
}

example/simple_bloc_flutter/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

example/vanilla/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
jcenter()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:3.0.1'
7+
classpath 'com.android.tools.build:gradle:3.1.2'
88
}
99
}
1010

example/vanilla/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

lib/src/theme.dart

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class ArchSampleTheme {
1515
buttonColor: Colors.grey[800],
1616
textSelectionColor: Colors.cyan[100],
1717
backgroundColor: Colors.grey[800],
18+
toggleableActiveColor: Colors.cyan[300],
1819
textTheme: originalTextTheme.copyWith(
1920
body1:
2021
originalBody1.copyWith(decorationColor: Colors.transparent)));

0 commit comments

Comments
 (0)