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
1731a16d
Commit
1731a16d
authored
Jun 29, 2017
by
Mikkel Nygaard Ravn
Committed by
GitHub
Jun 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make consistent use of gradle wrapper (#10993)
parent
52795630
Changes
76
Hide whitespace changes
Inline
Side-by-side
Showing
76 changed files
with
292 additions
and
301 deletions
+292
-301
.gitignore
dev/benchmarks/complex_layout/android/.gitignore
+1
-1
build.gradle
dev/benchmarks/complex_layout/android/app/build.gradle
+4
-0
AndroidManifest.xml
...s/complex_layout/android/app/src/main/AndroidManifest.xml
+1
-4
build.gradle
dev/benchmarks/complex_layout/android/build.gradle
+5
-5
gradle-wrapper.properties
...x_layout/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
.gitignore
dev/benchmarks/microbenchmarks/android/.gitignore
+1
-1
build.gradle
dev/benchmarks/microbenchmarks/android/app/build.gradle
+4
-0
AndroidManifest.xml
.../microbenchmarks/android/app/src/main/AndroidManifest.xml
+1
-4
build.gradle
dev/benchmarks/microbenchmarks/android/build.gradle
+5
-5
gradle-wrapper.properties
...nchmarks/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
.gitignore
dev/integration_tests/channels/android/.gitignore
+1
-1
build.gradle
dev/integration_tests/channels/android/app/build.gradle
+4
-0
AndroidManifest.xml
...n_tests/channels/android/app/src/main/AndroidManifest.xml
+1
-5
build.gradle
dev/integration_tests/channels/android/build.gradle
+4
-5
gradle-wrapper.properties
...channels/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
.gitignore
dev/integration_tests/ui/android/.gitignore
+1
-1
build.gradle
dev/integration_tests/ui/android/app/build.gradle
+4
-0
AndroidManifest.xml
...gration_tests/ui/android/app/src/main/AndroidManifest.xml
+1
-5
build.gradle
dev/integration_tests/ui/android/build.gradle
+4
-5
gradle-wrapper.properties
...tests/ui/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
.gitignore
dev/manual_tests/android/.gitignore
+1
-1
AndroidManifest.xml
dev/manual_tests/android/app/src/main/AndroidManifest.xml
+1
-5
build.gradle
dev/manual_tests/android/build.gradle
+4
-5
gradle-wrapper.properties
...al_tests/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
README.md
examples/README.md
+9
-0
.gitignore
examples/catalog/android/.gitignore
+3
-1
build.gradle
examples/catalog/android/app/build.gradle
+5
-0
AndroidManifest.xml
examples/catalog/android/app/src/main/AndroidManifest.xml
+1
-5
build.gradle
examples/catalog/android/build.gradle
+4
-5
gradle-wrapper.properties
.../catalog/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
.gitignore
examples/flutter_gallery/android/.gitignore
+3
-1
build.gradle
examples/flutter_gallery/android/app/build.gradle
+5
-3
AndroidManifest.xml
.../flutter_gallery/android/app/src/main/AndroidManifest.xml
+1
-5
build.gradle
examples/flutter_gallery/android/build.gradle
+4
-5
gradle-wrapper.properties
..._gallery/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
.gitignore
examples/flutter_view/android/.gitignore
+3
-1
build.gradle
examples/flutter_view/android/app/build.gradle
+5
-0
AndroidManifest.xml
...les/flutter_view/android/app/src/main/AndroidManifest.xml
+1
-5
build.gradle
examples/flutter_view/android/build.gradle
+4
-5
gradle-wrapper.properties
...ter_view/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
.gitignore
examples/hello_world/android/.gitignore
+3
-1
build.gradle
examples/hello_world/android/app/build.gradle
+5
-3
AndroidManifest.xml
...ples/hello_world/android/app/src/main/AndroidManifest.xml
+1
-5
build.gradle
examples/hello_world/android/build.gradle
+4
-5
gradle-wrapper.properties
...lo_world/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
.gitignore
examples/layers/android/.gitignore
+3
-1
build.gradle
examples/layers/android/app/build.gradle
+5
-0
AndroidManifest.xml
examples/layers/android/app/src/main/AndroidManifest.xml
+1
-5
build.gradle
examples/layers/android/build.gradle
+5
-5
gradle-wrapper.properties
...s/layers/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
.gitignore
examples/platform_channel/android/.gitignore
+3
-1
build.gradle
examples/platform_channel/android/app/build.gradle
+5
-1
AndroidManifest.xml
...platform_channel/android/app/src/main/AndroidManifest.xml
+1
-5
build.gradle
examples/platform_channel/android/build.gradle
+4
-5
gradle-wrapper.properties
..._channel/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
.gitignore
examples/platform_view/android/.gitignore
+3
-1
build.gradle
examples/platform_view/android/app/build.gradle
+5
-3
AndroidManifest.xml
...es/platform_view/android/app/src/main/AndroidManifest.xml
+1
-7
build.gradle
examples/platform_view/android/build.gradle
+4
-5
gradle-wrapper.properties
...orm_view/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
.gitignore
examples/stocks/android/.gitignore
+3
-1
build.gradle
examples/stocks/android/app/build.gradle
+5
-1
AndroidManifest.xml
examples/stocks/android/app/src/main/AndroidManifest.xml
+1
-5
build.gradle
examples/stocks/android/build.gradle
+4
-5
gradle-wrapper.properties
...s/stocks/android/gradle/wrapper/gradle-wrapper.properties
+6
-0
android_studio.dart
packages/flutter_tools/lib/src/android/android_studio.dart
+1
-59
android_studio_validator.dart
...utter_tools/lib/src/android/android_studio_validator.dart
+0
-59
gradle.dart
packages/flutter_tools/lib/src/android/gradle.dart
+19
-15
build.gradle.tmpl
.../templates/create/android-java.tmpl/app/build.gradle.tmpl
+5
-2
build.gradle
...ter_tools/templates/create/android-java.tmpl/build.gradle
+3
-0
build.gradle.tmpl
...emplates/create/android-kotlin.tmpl/app/build.gradle.tmpl
+5
-2
build.gradle
...r_tools/templates/create/android-kotlin.tmpl/build.gradle
+3
-0
AndroidManifest.xml.tmpl
...create/android.tmpl/app/src/main/AndroidManifest.xml.tmpl
+1
-5
build.gradle.tmpl
...ools/templates/plugin/android-java.tmpl/build.gradle.tmpl
+7
-0
build.gradle.tmpl
...ls/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl
+7
-0
AndroidManifest.xml.tmpl
...tes/plugin/android.tmpl/src/main/AndroidManifest.xml.tmpl
+1
-5
No files found.
dev/benchmarks/complex_layout/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,6 @@
...
@@ -8,6 +8,6 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
dev/benchmarks/complex_layout/android/app/build.gradle
View file @
1731a16d
...
@@ -23,6 +23,10 @@ android {
...
@@ -23,6 +23,10 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"0.0.1"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
...
...
dev/benchmarks/complex_layout/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.yourcompany.complexLayout"
package=
"com.yourcompany.complexLayout"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<application
android:name=
"io.flutter.app.FlutterApplication"
android:label=
"complex_layout"
android:icon=
"@mipmap/ic_launcher"
>
<application
android:name=
"io.flutter.app.FlutterApplication"
android:label=
"complex_layout"
android:icon=
"@mipmap/ic_launcher"
>
...
...
dev/benchmarks/complex_layout/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -20,12 +23,9 @@ allprojects {
...
@@ -20,12 +23,9 @@ allprojects {
rootProject
.
buildDir
=
'../build'
rootProject
.
buildDir
=
'../build'
subprojects
{
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
project
.
evaluationDependsOn
(
':app'
)
}
}
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
dev/benchmarks/complex_layout/android/gradle/wrapper/gradle-wrapper.properties
0 → 100644
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
dev/benchmarks/microbenchmarks/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,6 @@
...
@@ -8,6 +8,6 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
dev/benchmarks/microbenchmarks/android/app/build.gradle
View file @
1731a16d
...
@@ -23,6 +23,10 @@ android {
...
@@ -23,6 +23,10 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"0.0.1"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
...
...
dev/benchmarks/microbenchmarks/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.yourcompany.microbenchmarks"
package=
"com.yourcompany.microbenchmarks"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<application
android:name=
"io.flutter.app.FlutterApplication"
android:label=
"microbenchmarks"
android:icon=
"@mipmap/ic_launcher"
>
<application
android:name=
"io.flutter.app.FlutterApplication"
android:label=
"microbenchmarks"
android:icon=
"@mipmap/ic_launcher"
>
...
...
dev/benchmarks/microbenchmarks/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -20,12 +23,9 @@ allprojects {
...
@@ -20,12 +23,9 @@ allprojects {
rootProject
.
buildDir
=
'../build'
rootProject
.
buildDir
=
'../build'
subprojects
{
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
project
.
evaluationDependsOn
(
':app'
)
}
}
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
dev/benchmarks/microbenchmarks/android/gradle/wrapper/gradle-wrapper.properties
0 → 100644
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
dev/integration_tests/channels/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,6 @@
...
@@ -8,6 +8,6 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
dev/integration_tests/channels/android/app/build.gradle
View file @
1731a16d
...
@@ -23,6 +23,10 @@ android {
...
@@ -23,6 +23,10 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"0.0.1"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
...
...
dev/integration_tests/channels/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.yourcompany.channels"
package=
"com.yourcompany.channels"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically,
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
flutter needs it to communicate with the running application
...
...
dev/integration_tests/channels/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -26,7 +29,3 @@ subprojects {
...
@@ -26,7 +29,3 @@ subprojects {
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
dev/integration_tests/channels/android/gradle/wrapper/gradle-wrapper.properties
0 → 100755
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
dev/integration_tests/ui/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,6 @@
...
@@ -8,6 +8,6 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
dev/integration_tests/ui/android/app/build.gradle
View file @
1731a16d
...
@@ -23,6 +23,10 @@ android {
...
@@ -23,6 +23,10 @@ android {
}
}
defaultConfig
{
defaultConfig
{
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
...
...
dev/integration_tests/ui/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
...
@@ -3,11 +3,7 @@
...
@@ -3,11 +3,7 @@
found in the LICENSE file.
found in the LICENSE file.
-->
-->
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.yourcompany.integration_ui"
package=
"com.yourcompany.integration_ui"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically,
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
flutter needs it to communicate with the running application
...
...
dev/integration_tests/ui/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -26,7 +29,3 @@ subprojects {
...
@@ -26,7 +29,3 @@ subprojects {
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
dev/integration_tests/ui/android/gradle/wrapper/gradle-wrapper.properties
0 → 100644
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
dev/manual_tests/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,6 @@
...
@@ -8,6 +8,6 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
dev/manual_tests/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
...
@@ -4,11 +4,7 @@
...
@@ -4,11 +4,7 @@
found in the LICENSE file.
found in the LICENSE file.
-->
-->
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"io.flutter.examples.manual_tests"
package=
"io.flutter.examples.manual_tests"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically,
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
flutter needs it to communicate with the running application
...
...
dev/manual_tests/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -26,7 +29,3 @@ subprojects {
...
@@ -26,7 +29,3 @@ subprojects {
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
dev/manual_tests/android/gradle/wrapper/gradle-wrapper.properties
0 → 100755
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
examples/README.md
View file @
1731a16d
...
@@ -44,3 +44,12 @@ Available examples include:
...
@@ -44,3 +44,12 @@ Available examples include:
-
**Stocks**
The
[
stocks
](
stocks
)
demo shows how one might structure
-
**Stocks**
The
[
stocks
](
stocks
)
demo shows how one might structure
an application with several screens.
an application with several screens.
Note on Gradle wrapper files in
`.gitignore`
:
Gradle wrapper files should normally be checked into source control.
The example projects don't do that to avoid having several copies of the
wrapper binary in the Flutter repo. Instead, the Gradle wrapper is
injected by Flutter tooling, and the wrapper files are .gitignore'd to
avoid making the Flutter repository dirty as a side effect of running
the examples.
examples/catalog/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
# Gradle wrapper files should normally be checked into source control.
# See ../../README.md
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
examples/catalog/android/app/build.gradle
View file @
1731a16d
...
@@ -23,6 +23,11 @@ android {
...
@@ -23,6 +23,11 @@ android {
}
}
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.examples.catalog"
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
...
...
examples/catalog/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.yourcompany.animated_list"
package=
"com.yourcompany.animated_list"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically,
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
flutter needs it to communicate with the running application
...
...
examples/catalog/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -26,7 +29,3 @@ subprojects {
...
@@ -26,7 +29,3 @@ subprojects {
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
examples/catalog/android/gradle/wrapper/gradle-wrapper.properties
0 → 100644
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
examples/flutter_gallery/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
# Gradle wrapper files should normally be checked into source control.
# See ../../README.md
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
examples/flutter_gallery/android/app/build.gradle
View file @
1731a16d
...
@@ -23,10 +23,12 @@ android {
...
@@ -23,10 +23,12 @@ android {
}
}
defaultConfig
{
defaultConfig
{
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"io.flutter.examples.gallery"
applicationId
"io.flutter.examples.gallery"
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"0.0.1"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
buildTypes
{
buildTypes
{
...
...
examples/flutter_gallery/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
...
@@ -4,11 +4,7 @@
...
@@ -4,11 +4,7 @@
found in the LICENSE file.
found in the LICENSE file.
-->
-->
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"io.flutter.examples.gallery"
package=
"io.flutter.examples.gallery"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically,
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
flutter needs it to communicate with the running application
...
...
examples/flutter_gallery/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -26,7 +29,3 @@ subprojects {
...
@@ -26,7 +29,3 @@ subprojects {
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
examples/flutter_gallery/android/gradle/wrapper/gradle-wrapper.properties
0 → 100644
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
examples/flutter_view/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
# Gradle wrapper files should normally be checked into source control.
# See ../../README.md
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
examples/flutter_view/android/app/build.gradle
View file @
1731a16d
...
@@ -23,6 +23,11 @@ android {
...
@@ -23,6 +23,11 @@ android {
}
}
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.examples.flutter_view"
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"0.0.1"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
...
...
examples/flutter_view/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.example.view"
package=
"com.example.view"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically, flutter needs it to communicate with the running application
<!-- The INTERNET permission is required for development. Specifically, flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
to allow setting breakpoints, to provide hot reload, etc.
...
...
examples/flutter_view/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -26,7 +29,3 @@ subprojects {
...
@@ -26,7 +29,3 @@ subprojects {
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
examples/flutter_view/android/gradle/wrapper/gradle-wrapper.properties
0 → 100644
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
examples/hello_world/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
# Gradle wrapper files should normally be checked into source control.
# See ../../README.md
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
examples/hello_world/android/app/build.gradle
View file @
1731a16d
...
@@ -23,10 +23,12 @@ android {
...
@@ -23,10 +23,12 @@ android {
}
}
defaultConfig
{
defaultConfig
{
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"io.flutter.examples.hello_world"
applicationId
"io.flutter.examples.hello_world"
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"0.0.1"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
buildTypes
{
buildTypes
{
...
...
examples/hello_world/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
...
@@ -4,11 +4,7 @@
...
@@ -4,11 +4,7 @@
found in the LICENSE file.
found in the LICENSE file.
-->
-->
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"io.flutter.examples.hello_world"
package=
"io.flutter.examples.hello_world"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically,
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
flutter needs it to communicate with the running application
...
...
examples/hello_world/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -26,7 +29,3 @@ subprojects {
...
@@ -26,7 +29,3 @@ subprojects {
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
examples/hello_world/android/gradle/wrapper/gradle-wrapper.properties
0 → 100644
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
examples/layers/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
# Gradle wrapper files should normally be checked into source control.
# See ../../README.md
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
examples/layers/android/app/build.gradle
View file @
1731a16d
...
@@ -23,6 +23,11 @@ android {
...
@@ -23,6 +23,11 @@ android {
}
}
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.examples.layers"
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"0.0.1"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
...
...
examples/layers/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"io.flutter.examples.Layers"
package=
"io.flutter.examples.Layers"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically,
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
flutter needs it to communicate with the running application
...
...
examples/layers/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -20,12 +23,9 @@ allprojects {
...
@@ -20,12 +23,9 @@ allprojects {
rootProject
.
buildDir
=
'../build'
rootProject
.
buildDir
=
'../build'
subprojects
{
subprojects
{
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
project
.
buildDir
=
"${rootProject.buildDir}/${project.name}"
project
.
evaluationDependsOn
(
':app'
)
}
}
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
examples/layers/android/gradle/wrapper/gradle-wrapper.properties
0 → 100644
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
examples/platform_channel/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
# Gradle wrapper files should normally be checked into source control.
# See ../../README.md
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
examples/platform_channel/android/app/build.gradle
View file @
1731a16d
...
@@ -23,8 +23,12 @@ android {
...
@@ -23,8 +23,12 @@ android {
}
}
defaultConfig
{
defaultConfig
{
applicationId
"io.flutter.examples.platform_channel"
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"0.0.1"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
applicationId
"com.example.platformchannel"
}
}
buildTypes
{
buildTypes
{
...
...
examples/platform_channel/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.example.platformchannel"
package=
"com.example.platformchannel"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically,
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
flutter needs it to communicate with the running application
...
...
examples/platform_channel/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -26,7 +29,3 @@ subprojects {
...
@@ -26,7 +29,3 @@ subprojects {
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
examples/platform_channel/android/gradle/wrapper/gradle-wrapper.properties
0 → 100644
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
examples/platform_view/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
# Gradle wrapper files should normally be checked into source control.
# See ../../README.md
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
examples/platform_view/android/app/build.gradle
View file @
1731a16d
...
@@ -23,10 +23,12 @@ android {
...
@@ -23,10 +23,12 @@ android {
}
}
defaultConfig
{
defaultConfig
{
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"io.flutter.examples.platform_view"
applicationId
"io.flutter.examples.platform_view"
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"0.0.1"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
buildTypes
{
buildTypes
{
...
...
examples/platform_view/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"io.flutter.examples.platform_view"
package=
"io.flutter.examples.platform_view"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically,
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
flutter needs it to communicate with the running application
...
...
examples/platform_view/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -26,7 +29,3 @@ subprojects {
...
@@ -26,7 +29,3 @@ subprojects {
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
examples/platform_view/android/gradle/wrapper/gradle-wrapper.properties
0 → 100644
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
examples/stocks/android/.gitignore
View file @
1731a16d
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
/captures
/captures
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.java
/gradle
# Gradle wrapper files should normally be checked into source control.
# See ../../README.md
gradle-wrapper.jar
/gradlew
/gradlew
/gradlew.bat
/gradlew.bat
examples/stocks/android/app/build.gradle
View file @
1731a16d
...
@@ -23,8 +23,12 @@ android {
...
@@ -23,8 +23,12 @@ android {
}
}
defaultConfig
{
defaultConfig
{
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
applicationId
"io.flutter.examples.stocks"
applicationId
"io.flutter.examples.stocks"
minSdkVersion
16
targetSdkVersion
25
versionCode
1
versionName
"0.0.1"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
}
buildTypes
{
buildTypes
{
...
...
examples/stocks/android/app/src/main/AndroidManifest.xml
View file @
1731a16d
...
@@ -4,11 +4,7 @@
...
@@ -4,11 +4,7 @@
found in the LICENSE file.
found in the LICENSE file.
-->
-->
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"io.flutter.examples.stocks"
package=
"io.flutter.examples.stocks"
>
android:versionCode=
"1"
android:versionName=
"0.0.1"
>
<uses-sdk
android:minSdkVersion=
"16"
android:targetSdkVersion=
"21"
/>
<!-- The INTERNET permission is required for development. Specifically,
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
flutter needs it to communicate with the running application
...
...
examples/stocks/android/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.
2
.3'
classpath
'com.android.tools.build:gradle:2.
3
.3'
}
}
}
}
...
@@ -26,7 +29,3 @@ subprojects {
...
@@ -26,7 +29,3 @@ subprojects {
task
clean
(
type:
Delete
)
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
task
wrapper
(
type:
Wrapper
)
{
gradleVersion
=
'2.14.1'
}
examples/stocks/android/gradle/wrapper/gradle-wrapper.properties
0 → 100755
View file @
1731a16d
#Fri Jun 23 08:50:38 CEST 2017
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-3.3-all.zip
packages/flutter_tools/lib/src/android/android_studio.dart
View file @
1731a16d
...
@@ -6,7 +6,6 @@ import '../base/common.dart';
...
@@ -6,7 +6,6 @@ import '../base/common.dart';
import
'../base/context.dart'
;
import
'../base/context.dart'
;
import
'../base/file_system.dart'
;
import
'../base/file_system.dart'
;
import
'../base/io.dart'
;
import
'../base/io.dart'
;
import
'../base/os.dart'
;
import
'../base/platform.dart'
;
import
'../base/platform.dart'
;
import
'../base/process_manager.dart'
;
import
'../base/process_manager.dart'
;
import
'../base/version.dart'
;
import
'../base/version.dart'
;
...
@@ -25,27 +24,9 @@ AndroidStudio get androidStudio =>
...
@@ -25,27 +24,9 @@ AndroidStudio get androidStudio =>
// /Applications/Android Studio.app/Contents/
// /Applications/Android Studio.app/Contents/
// $HOME/Applications/Android Studio.app/Contents/
// $HOME/Applications/Android Studio.app/Contents/
// $STUDIO_HOME/gradle/gradle-X.Y.Z/bin/gradle
final
Version
minGradleVersion
=
new
Version
(
2
,
14
,
1
);
final
RegExp
_dotHomeStudioVersionMatcher
=
final
RegExp
_dotHomeStudioVersionMatcher
=
new
RegExp
(
r'^\.AndroidStudio([^\d]*)([\d.]+)'
);
new
RegExp
(
r'^\.AndroidStudio([^\d]*)([\d.]+)'
);
/// Locate Gradle.
String
get
gradleExecutable
{
// See if the user has explicitly configured gradle-dir.
final
String
gradleDir
=
config
.
getValue
(
'gradle-dir'
);
if
(
gradleDir
!=
null
)
{
if
(
fs
.
isFileSync
(
gradleDir
))
return
gradleDir
;
return
fs
.
path
.
join
(
gradleDir
,
'bin'
,
platform
.
isWindows
?
'gradle.bat'
:
'gradle'
);
}
return
androidStudio
?.
gradleExecutable
??
os
.
which
(
'gradle'
)?.
path
;
}
String
get
javaPath
=>
androidStudio
?.
javaPath
;
String
get
javaPath
=>
androidStudio
?.
javaPath
;
class
AndroidStudio
implements
Comparable
<
AndroidStudio
>
{
class
AndroidStudio
implements
Comparable
<
AndroidStudio
>
{
...
@@ -58,7 +39,6 @@ class AndroidStudio implements Comparable<AndroidStudio> {
...
@@ -58,7 +39,6 @@ class AndroidStudio implements Comparable<AndroidStudio> {
final
Version
version
;
final
Version
version
;
final
String
configured
;
final
String
configured
;
String
_gradlePath
;
String
_javaPath
;
String
_javaPath
;
bool
_isValid
=
false
;
bool
_isValid
=
false
;
final
List
<
String
>
_validationMessages
=
<
String
>[];
final
List
<
String
>
_validationMessages
=
<
String
>[];
...
@@ -98,11 +78,6 @@ class AndroidStudio implements Comparable<AndroidStudio> {
...
@@ -98,11 +78,6 @@ class AndroidStudio implements Comparable<AndroidStudio> {
return
null
;
return
null
;
}
}
String
get
gradlePath
=>
_gradlePath
;
String
get
gradleExecutable
=>
fs
.
path
.
join
(
_gradlePath
,
'bin'
,
platform
.
isWindows
?
'gradle.bat'
:
'gradle'
);
String
get
javaPath
=>
_javaPath
;
String
get
javaPath
=>
_javaPath
;
bool
get
isValid
=>
_isValid
;
bool
get
isValid
=>
_isValid
;
...
@@ -246,40 +221,6 @@ class AndroidStudio implements Comparable<AndroidStudio> {
...
@@ -246,40 +221,6 @@ class AndroidStudio implements Comparable<AndroidStudio> {
return
;
return
;
}
}
Version
latestGradleVersion
;
List
<
FileSystemEntity
>
gradlePaths
;
try
{
gradlePaths
=
fs
.
directory
(
fs
.
path
.
join
(
directory
,
'gradle'
)).
listSync
();
for
(
FileSystemEntity
entry
in
gradlePaths
.
where
((
FileSystemEntity
e
)
=>
e
.
basename
.
startsWith
(
'gradle-'
)
&&
e
is
Directory
))
{
final
Version
version
=
new
Version
.
parse
(
entry
.
basename
.
substring
(
'gradle-'
.
length
))
??
Version
.
unknown
;
if
(
latestGradleVersion
==
null
||
version
>
latestGradleVersion
)
{
latestGradleVersion
=
version
;
if
(
version
>=
minGradleVersion
)
{
_gradlePath
=
entry
.
path
;
}
}
}
}
catch
(
e
)
{
printTrace
(
'Unable to determine Gradle version:
$e
'
);
}
if
(
latestGradleVersion
==
null
)
{
_validationMessages
.
add
(
'Gradle not found.'
);
}
else
if
(
_gradlePath
==
null
)
{
_validationMessages
.
add
(
'Gradle version
$minGradleVersion
required. '
'Found version
$latestGradleVersion
.'
);
}
else
if
(
processManager
.
canRun
(
gradleExecutable
))
{
_isValid
=
true
;
_validationMessages
.
add
(
'Gradle version
$latestGradleVersion
'
);
}
else
{
_validationMessages
.
add
(
'Gradle version
$latestGradleVersion
at
$_gradlePath
is not executable.'
);
}
final
String
javaPath
=
platform
.
isMacOS
?
final
String
javaPath
=
platform
.
isMacOS
?
fs
.
path
.
join
(
directory
,
'jre'
,
'jdk'
,
'Contents'
,
'Home'
)
:
fs
.
path
.
join
(
directory
,
'jre'
,
'jdk'
,
'Contents'
,
'Home'
)
:
fs
.
path
.
join
(
directory
,
'jre'
);
fs
.
path
.
join
(
directory
,
'jre'
);
...
@@ -293,6 +234,7 @@ class AndroidStudio implements Comparable<AndroidStudio> {
...
@@ -293,6 +234,7 @@ class AndroidStudio implements Comparable<AndroidStudio> {
final
String
javaVersion
=
versionLines
.
length
>=
2
?
versionLines
[
1
]
:
versionLines
[
0
];
final
String
javaVersion
=
versionLines
.
length
>=
2
?
versionLines
[
1
]
:
versionLines
[
0
];
_validationMessages
.
add
(
'Java version
$javaVersion
'
);
_validationMessages
.
add
(
'Java version
$javaVersion
'
);
_javaPath
=
javaPath
;
_javaPath
=
javaPath
;
_isValid
=
true
;
}
else
{
}
else
{
_validationMessages
.
add
(
'Unable to determine bundled Java version.'
);
_validationMessages
.
add
(
'Unable to determine bundled Java version.'
);
}
}
...
...
packages/flutter_tools/lib/src/android/android_studio_validator.dart
View file @
1731a16d
...
@@ -4,10 +4,6 @@
...
@@ -4,10 +4,6 @@
import
'dart:async'
;
import
'dart:async'
;
import
'../base/file_system.dart'
;
import
'../base/io.dart'
;
import
'../base/platform.dart'
;
import
'../base/process_manager.dart'
;
import
'../base/version.dart'
;
import
'../base/version.dart'
;
import
'../doctor.dart'
;
import
'../doctor.dart'
;
import
'../globals.dart'
;
import
'../globals.dart'
;
...
@@ -27,10 +23,6 @@ class AndroidStudioValidator extends DoctorValidator {
...
@@ -27,10 +23,6 @@ class AndroidStudioValidator extends DoctorValidator {
validators
.
addAll
(
studios
validators
.
addAll
(
studios
.
map
((
AndroidStudio
studio
)
=>
new
AndroidStudioValidator
(
studio
)));
.
map
((
AndroidStudio
studio
)
=>
new
AndroidStudioValidator
(
studio
)));
}
}
final
String
cfgGradleDir
=
config
.
getValue
(
'gradle-dir'
);
if
(
cfgGradleDir
!=
null
)
{
validators
.
add
(
new
ConfiguredGradleValidator
(
cfgGradleDir
));
}
return
validators
;
return
validators
;
}
}
...
@@ -84,54 +76,3 @@ class NoAndroidStudioValidator extends DoctorValidator {
...
@@ -84,54 +76,3 @@ class NoAndroidStudioValidator extends DoctorValidator {
statusInfo:
'not installed'
);
statusInfo:
'not installed'
);
}
}
}
}
class
ConfiguredGradleValidator
extends
DoctorValidator
{
final
String
cfgGradleDir
;
ConfiguredGradleValidator
(
this
.
cfgGradleDir
)
:
super
(
'Gradle'
);
@override
Future
<
ValidationResult
>
validate
()
async
{
ValidationType
type
=
ValidationType
.
missing
;
final
List
<
ValidationMessage
>
messages
=
<
ValidationMessage
>[];
messages
.
add
(
new
ValidationMessage
(
'gradle-dir =
$cfgGradleDir
'
));
String
gradleExecutable
=
cfgGradleDir
;
if
(!
fs
.
isFileSync
(
cfgGradleDir
))
{
gradleExecutable
=
fs
.
path
.
join
(
cfgGradleDir
,
'bin'
,
platform
.
isWindows
?
'gradle.bat'
:
'gradle'
);
}
String
versionString
;
if
(
processManager
.
canRun
(
gradleExecutable
))
{
type
=
ValidationType
.
partial
;
final
ProcessResult
result
=
processManager
.
runSync
(<
String
>[
gradleExecutable
,
'--version'
]);
if
(
result
.
exitCode
==
0
)
{
versionString
=
result
.
stdout
.
toString
()
.
split
(
'
\n
'
)
.
firstWhere
((
String
s
)
=>
s
.
startsWith
(
'Gradle '
))
.
substring
(
'Gradle '
.
length
);
final
Version
version
=
new
Version
.
parse
(
versionString
)
??
Version
.
unknown
;
if
(
version
>=
minGradleVersion
)
{
type
=
ValidationType
.
installed
;
}
else
{
messages
.
add
(
new
ValidationMessage
.
error
(
'Gradle version
$minGradleVersion
required. Found version
$versionString
.'
));
}
}
else
{
messages
.
add
(
new
ValidationMessage
(
'Unable to determine Gradle version.'
));
}
}
else
{
messages
.
add
(
new
ValidationMessage
(
'Gradle not found at
$gradleExecutable
'
));
}
messages
.
add
(
new
ValidationMessage
(
'Flutter supports building with Gradle from Android Studio.
\n
'
'Consider removing your gradle-dir setting by running:
\n
flutter config --gradle-dir='
));
return
new
ValidationResult
(
type
,
messages
,
statusInfo:
versionString
);
}
}
packages/flutter_tools/lib/src/android/gradle.dart
View file @
1731a16d
...
@@ -22,6 +22,7 @@ import 'android_studio.dart';
...
@@ -22,6 +22,7 @@ import 'android_studio.dart';
const
String
gradleManifestPath
=
'android/app/src/main/AndroidManifest.xml'
;
const
String
gradleManifestPath
=
'android/app/src/main/AndroidManifest.xml'
;
const
String
gradleAppOutV1
=
'android/app/build/outputs/apk/app-debug.apk'
;
const
String
gradleAppOutV1
=
'android/app/build/outputs/apk/app-debug.apk'
;
const
String
gradleAppOutDirV1
=
'android/app/build/outputs/apk'
;
const
String
gradleAppOutDirV1
=
'android/app/build/outputs/apk'
;
const
String
gradleVersion
=
'3.3'
;
String
_cachedGradleAppOutDirV2
;
String
_cachedGradleAppOutDirV2
;
...
@@ -104,16 +105,6 @@ String _calculateGradleAppOutDirV2() {
...
@@ -104,16 +105,6 @@ String _calculateGradleAppOutDirV2() {
return
gradleAppOutDirV1
;
return
gradleAppOutDirV1
;
}
}
String
locateSystemGradle
(
{
bool
ensureExecutable:
true
})
{
final
String
gradle
=
gradleExecutable
;
if
(
ensureExecutable
&&
gradle
!=
null
)
{
final
File
file
=
fs
.
file
(
gradle
);
if
(
file
.
existsSync
())
os
.
makeExecutable
(
file
);
}
return
gradle
;
}
String
locateProjectGradlew
(
{
bool
ensureExecutable:
true
})
{
String
locateProjectGradlew
(
{
bool
ensureExecutable:
true
})
{
final
String
path
=
fs
.
path
.
join
(
final
String
path
=
fs
.
path
.
join
(
'android'
,
platform
.
isWindows
?
'gradlew.bat'
:
'gradlew'
'android'
,
platform
.
isWindows
?
'gradlew.bat'
:
'gradlew'
...
@@ -132,14 +123,27 @@ String locateProjectGradlew({ bool ensureExecutable: true }) {
...
@@ -132,14 +123,27 @@ String locateProjectGradlew({ bool ensureExecutable: true }) {
String
ensureGradle
(
)
{
String
ensureGradle
(
)
{
String
gradle
=
locateProjectGradlew
();
String
gradle
=
locateProjectGradlew
();
if
(
gradle
==
null
)
{
if
(
gradle
==
null
)
{
gradle
=
locateSystemGradle
();
_injectGradleWrapper
();
if
(
gradle
==
null
)
gradle
=
locateProjectGradlew
();
throwToolExit
(
'Unable to locate gradle. Please install Android Studio.'
);
}
}
printTrace
(
'Using gradle from
$gradle
.'
);
return
gradle
;
return
gradle
;
}
}
void
_injectGradleWrapper
(
)
{
copyDirectorySync
(
cache
.
getArtifactDirectory
(
'gradle_wrapper'
),
fs
.
directory
(
'android'
));
final
String
propertiesPath
=
fs
.
path
.
join
(
'android'
,
'gradle'
,
'wrapper'
,
'gradle-wrapper.properties'
);
if
(!
fs
.
file
(
propertiesPath
).
existsSync
())
{
fs
.
file
(
propertiesPath
).
writeAsStringSync
(
'''
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https
\\
://services.gradle.org/distributions/gradle-
$gradleVersion
-all.zip
'''
,
flush:
true
,
);
}
}
/// Create android/local.properties if needed, and update Flutter settings.
/// Create android/local.properties if needed, and update Flutter settings.
void
updateLocalProperties
(
{
String
projectPath
,
String
buildMode
})
{
void
updateLocalProperties
(
{
String
projectPath
,
String
buildMode
})
{
final
File
localProperties
=
(
projectPath
==
null
)
final
File
localProperties
=
(
projectPath
==
null
)
...
@@ -226,7 +230,7 @@ Future<Null> buildGradleProjectV2(String gradle, String buildModeName, String ta
...
@@ -226,7 +230,7 @@ Future<Null> buildGradleProjectV2(String gradle, String buildModeName, String ta
final
String
assembleTask
=
"assemble
${toTitleCase(buildModeName)}
"
;
final
String
assembleTask
=
"assemble
${toTitleCase(buildModeName)}
"
;
// Run 'gradle assemble<BuildMode>'.
// Run 'gradle assemble<BuildMode>'.
final
Status
status
=
logger
.
startProgress
(
'Running
\'
gradle
$assembleTask
\'
...'
,
expectSlowOperation:
true
);
final
Status
status
=
logger
.
startProgress
(
'Running
\'
gradle
w
$assembleTask
\'
...'
,
expectSlowOperation:
true
);
final
String
gradlePath
=
fs
.
file
(
gradle
).
absolute
.
path
;
final
String
gradlePath
=
fs
.
file
(
gradle
).
absolute
.
path
;
final
List
<
String
>
command
=
<
String
>[
gradlePath
];
final
List
<
String
>
command
=
<
String
>[
gradlePath
];
if
(!
logger
.
isVerbose
)
{
if
(!
logger
.
isVerbose
)
{
...
...
packages/flutter_tools/templates/create/android-java.tmpl/app/build.gradle.tmpl
View file @
1731a16d
...
@@ -23,10 +23,13 @@ android {
...
@@ -23,10 +23,13 @@ android {
}
}
defaultConfig {
defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "{{androidIdentifier}}"
applicationId "{{androidIdentifier}}"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
}
buildTypes {
buildTypes {
...
...
packages/flutter_tools/templates/create/android-java.tmpl/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
...
...
packages/flutter_tools/templates/create/android-kotlin.tmpl/app/build.gradle.tmpl
View file @
1731a16d
...
@@ -28,10 +28,13 @@ android {
...
@@ -28,10 +28,13 @@ android {
}
}
defaultConfig {
defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "{{androidIdentifier}}"
applicationId "{{androidIdentifier}}"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
}
buildTypes {
buildTypes {
...
...
packages/flutter_tools/templates/create/android-kotlin.tmpl/build.gradle
View file @
1731a16d
buildscript
{
buildscript
{
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
"https://maven.google.com"
}
}
}
dependencies
{
dependencies
{
...
...
packages/flutter_tools/templates/create/android.tmpl/app/src/main/AndroidManifest.xml.tmpl
View file @
1731a16d
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="{{androidIdentifier}}"
package="{{androidIdentifier}}">
android:versionCode="1"
android:versionName="0.0.1">
<uses-sdk android:minSdkVersion="{{androidMinApiLevel}}" android:targetSdkVersion="21" />
<!-- The INTERNET permission is required for development. Specifically,
<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
flutter needs it to communicate with the running application
...
...
packages/flutter_tools/templates/plugin/android-java.tmpl/build.gradle.tmpl
View file @
1731a16d
...
@@ -4,6 +4,9 @@ version '1.0-SNAPSHOT'
...
@@ -4,6 +4,9 @@ version '1.0-SNAPSHOT'
buildscript {
buildscript {
repositories {
repositories {
jcenter()
jcenter()
maven {
url "https://maven.google.com"
}
}
}
dependencies {
dependencies {
...
@@ -27,6 +30,10 @@ android {
...
@@ -27,6 +30,10 @@ android {
buildToolsVersion '25.0.3'
buildToolsVersion '25.0.3'
defaultConfig {
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
}
lintOptions {
lintOptions {
...
...
packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl
View file @
1731a16d
...
@@ -4,6 +4,9 @@ version '1.0-SNAPSHOT'
...
@@ -4,6 +4,9 @@ version '1.0-SNAPSHOT'
buildscript {
buildscript {
repositories {
repositories {
jcenter()
jcenter()
maven {
url "https://maven.google.com"
}
}
}
dependencies {
dependencies {
...
@@ -31,6 +34,10 @@ android {
...
@@ -31,6 +34,10 @@ android {
main.java.srcDirs += 'src/main/kotlin'
main.java.srcDirs += 'src/main/kotlin'
}
}
defaultConfig {
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
}
lintOptions {
lintOptions {
...
...
packages/flutter_tools/templates/plugin/android.tmpl/src/main/AndroidManifest.xml.tmpl
View file @
1731a16d
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="{{androidIdentifier}}"
package="{{androidIdentifier}}">
android:versionCode="1"
android:versionName="0.0.1">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="21" />
</manifest>
</manifest>
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