Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
751c083f
Commit
751c083f
authored
Oct 18, 2018
by
Sebastian Roth
Committed by
Stanislav Baranov
Oct 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
newly created apps / plugins should use latest gradle dependencies (#22790)
parent
086cfcb1
Changes
49
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
56 additions
and
56 deletions
+56
-56
build.gradle
dev/benchmarks/complex_layout/android/build.gradle
+1
-1
gradle-wrapper.properties
...x_layout/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
dev/benchmarks/microbenchmarks/android/build.gradle
+1
-1
gradle-wrapper.properties
...nchmarks/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
dev/integration_tests/android_host_app/build.gradle
+1
-1
gradle-wrapper.properties
...android_host_app/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
...tion_tests/android_semantics_testing/android/build.gradle
+1
-1
gradle-wrapper.properties
..._testing/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
dev/integration_tests/android_views/android/build.gradle
+1
-1
gradle-wrapper.properties
...id_views/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
dev/integration_tests/channels/android/build.gradle
+1
-1
gradle-wrapper.properties
...channels/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
dev/integration_tests/external_ui/android/build.gradle
+1
-1
gradle-wrapper.properties
...ernal_ui/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
dev/integration_tests/flavors/android/build.gradle
+1
-1
gradle-wrapper.properties
.../flavors/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
...tegration_tests/platform_interaction/android/build.gradle
+1
-1
gradle-wrapper.properties
...eraction/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
dev/integration_tests/ui/android/build.gradle
+1
-1
gradle-wrapper.properties
...tests/ui/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
dev/manual_tests/android/build.gradle
+1
-1
gradle-wrapper.properties
...al_tests/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
examples/catalog/android/build.gradle
+1
-1
gradle-wrapper.properties
.../catalog/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
examples/flutter_gallery/android/build.gradle
+1
-1
gradle-wrapper.properties
..._gallery/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
examples/flutter_view/android/build.gradle
+1
-1
gradle-wrapper.properties
...ter_view/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
examples/hello_world/android/build.gradle
+1
-1
gradle-wrapper.properties
...lo_world/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
examples/layers/android/build.gradle
+1
-1
gradle-wrapper.properties
...s/layers/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
examples/platform_channel/android/build.gradle
+1
-1
gradle-wrapper.properties
..._channel/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
examples/platform_view/android/build.gradle
+1
-1
gradle-wrapper.properties
...orm_view/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
examples/stocks/android/build.gradle
+1
-1
gradle-wrapper.properties
...s/stocks/android/gradle/wrapper/gradle-wrapper.properties
+1
-1
flutter.gradle
packages/flutter_tools/gradle/flutter.gradle
+1
-1
gradle.dart
packages/flutter_tools/lib/src/android/gradle.dart
+1
-1
build.gradle
...lutter_tools/templates/app/android-java.tmpl/build.gradle
+1
-1
build.gradle.tmpl
...s/templates/app/android-kotlin.tmpl/app/build.gradle.tmpl
+1
-1
MainActivity.kt.tmpl
...pp/src/main/kotlin/androidIdentifier/MainActivity.kt.tmpl
+1
-1
build.gradle
...tter_tools/templates/app/android-kotlin.tmpl/build.gradle
+2
-2
gradle-wrapper.properties
...app/android.tmpl/gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle.copy.tmpl
...ls/templates/module/android/gradle/build.gradle.copy.tmpl
+1
-1
build.gradle.tmpl
...ools/templates/plugin/android-java.tmpl/build.gradle.tmpl
+1
-1
build.gradle.tmpl
...ls/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl
+3
-3
pluginClass.kt.tmpl
...mpl/src/main/kotlin/androidIdentifier/pluginClass.kt.tmpl
+5
-5
No files found.
dev/benchmarks/complex_layout/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
dev/benchmarks/complex_layout/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
dev/benchmarks/microbenchmarks/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
dev/benchmarks/microbenchmarks/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
dev/integration_tests/android_host_app/build.gradle
View file @
751c083f
...
...
@@ -4,7 +4,7 @@ buildscript {
jcenter
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.3
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
dev/integration_tests/android_host_app/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
dev/integration_tests/android_semantics_testing/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
dev/integration_tests/android_semantics_testing/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
dev/integration_tests/android_views/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
dev/integration_tests/android_views/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
dev/integration_tests/channels/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
dev/integration_tests/channels/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
dev/integration_tests/external_ui/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
dev/integration_tests/external_ui/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
dev/integration_tests/flavors/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
dev/integration_tests/flavors/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
dev/integration_tests/platform_interaction/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
dev/integration_tests/platform_interaction/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
dev/integration_tests/ui/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
dev/integration_tests/ui/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
dev/manual_tests/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
dev/manual_tests/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
examples/catalog/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
examples/catalog/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
examples/flutter_gallery/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
examples/flutter_gallery/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
examples/flutter_view/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
examples/flutter_view/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
examples/hello_world/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
examples/hello_world/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
examples/layers/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
examples/layers/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
examples/platform_channel/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
examples/platform_channel/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
examples/platform_view/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
examples/platform_view/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
examples/stocks/android/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
examples/stocks/android/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
packages/flutter_tools/gradle/flutter.gradle
View file @
751c083f
...
...
@@ -24,7 +24,7 @@ buildscript {
}
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
packages/flutter_tools/lib/src/android/gradle.dart
View file @
751c083f
...
...
@@ -23,7 +23,7 @@ import '../project.dart';
import
'android_sdk.dart'
;
import
'android_studio.dart'
;
const
String
gradleVersion
=
'4.
4
'
;
const
String
gradleVersion
=
'4.
10.2
'
;
final
RegExp
_assembleTaskPattern
=
RegExp
(
r'assemble(\S+)'
);
GradleProject
_cachedGradleProject
;
...
...
packages/flutter_tools/templates/app/android-java.tmpl/build.gradle
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
packages/flutter_tools/templates/app/android-kotlin.tmpl/app/build.gradle.tmpl
View file @
751c083f
...
...
@@ -60,7 +60,7 @@ flutter {
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-j
re
7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-j
dk
7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
...
...
packages/flutter_tools/templates/app/android-kotlin.tmpl/app/src/main/kotlin/androidIdentifier/MainActivity.kt.tmpl
View file @
751c083f
...
...
@@ -5,7 +5,7 @@ import android.os.Bundle
import
io
.
flutter
.
app
.
FlutterActivity
import
io
.
flutter
.
plugins
.
GeneratedPluginRegistrant
class
MainActivity
()
:
FlutterActivity
()
{
class
MainActivity
:
FlutterActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
GeneratedPluginRegistrant
.
registerWith
(
this
)
...
...
packages/flutter_tools/templates/app/android-kotlin.tmpl/build.gradle
View file @
751c083f
buildscript
{
ext
.
kotlin_version
=
'1.2.
30
'
ext
.
kotlin_version
=
'1.2.
71
'
repositories
{
google
()
jcenter
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
1.2
'
classpath
'com.android.tools.build:gradle:3.
2.1
'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
...
...
packages/flutter_tools/templates/app/android.tmpl/gradle/wrapper/gradle-wrapper.properties
View file @
751c083f
...
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.2
-all.zip
packages/flutter_tools/templates/module/android/gradle/build.gradle.copy.tmpl
View file @
751c083f
...
...
@@ -7,7 +7,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.
1.4
'
classpath 'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl
View file @
751c083f
...
...
@@ -8,7 +8,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.
1.2
'
classpath 'com.android.tools.build:gradle:3.
2.1
'
}
}
...
...
packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl
View file @
751c083f
...
...
@@ -2,14 +2,14 @@ group '{{androidIdentifier}}'
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.2.
30
'
ext.kotlin_version = '1.2.
71
'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.
1.2
'
classpath 'com.android.tools.build:gradle:3.
2.1
'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
...
...
@@ -40,5 +40,5 @@ android {
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-j
re
7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-j
dk
7:$kotlin_version"
}
packages/flutter_tools/templates/plugin/android-kotlin.tmpl/src/main/kotlin/androidIdentifier/pluginClass.kt.tmpl
View file @
751c083f
package
{{
androidIdentifier
}}
import
io
.
flutter
.
plugin
.
common
.
MethodCall
import
io
.
flutter
.
plugin
.
common
.
MethodChannel
import
io
.
flutter
.
plugin
.
common
.
MethodChannel
.
MethodCallHandler
import
io
.
flutter
.
plugin
.
common
.
MethodChannel
.
Result
import
io
.
flutter
.
plugin
.
common
.
MethodCall
import
io
.
flutter
.
plugin
.
common
.
PluginRegistry
.
Registrar
class
{{
pluginClass
}}
()
:
MethodCallHandler
{
class
{{
pluginClass
}}:
MethodCallHandler
{
companion
object
{
@
JvmStatic
fun
registerWith
(
registrar
:
Registrar
)
:
Unit
{
fun
registerWith
(
registrar
:
Registrar
)
{
val
channel
=
MethodChannel
(
registrar
.
messenger
(),
"{{projectName}}"
)
channel
.
setMethodCallHandler
({{
pluginClass
}}())
}
}
override
fun
onMethodCall
(
call
:
MethodCall
,
result
:
Result
)
:
Unit
{
if
(
call
.
method
.
equals
(
"getPlatformVersion"
)
)
{
override
fun
onMethodCall
(
call
:
MethodCall
,
result
:
Result
)
{
if
(
call
.
method
==
"getPlatformVersion"
)
{
result
.
success
(
"Android ${android.os.Build.VERSION.RELEASE}"
)
}
else
{
result
.
notImplemented
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment