Skip to content

Commit 2ed9028

Browse files
Rebuild plugin_codelab (flutter#58)
1 parent 6ed1eca commit 2ed9028

24 files changed

Lines changed: 124 additions & 191 deletions

flutter_ci_script_beta.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@ cd ./plugin_codelab
1717
$FLUTTER format --dry-run --set-exit-if-changed .;
1818
popd
1919

20-
declare -ar CODELABS=(
20+
declare -a CODELABS=(
2121
"add_flutter_to_android_app"
2222
"cupertino_store"
2323
"firebase-get-to-know-flutter"
2424
"github-graphql-client"
2525
"google-maps-in-flutter"
26-
# Plugin codelab's example project is unhappy with ubuntu-latest
27-
# "plugin_codelab"
2826
"startup_namer"
29-
# Tracking issue: https://github.com/flutter/flutter/issues/74209
30-
# "testing_codelab"
27+
# Tracking issue: https://github.com/flutter/flutter/issues/74209
28+
# "testing_codelab"
3129
)
3230

31+
# Plugin codelab is failing on ubuntu-latest in CI.
32+
if [[ "$OSTYPE" != "linux-gnu"* ]]; then
33+
CODELABS+=("plugin_codelab")
34+
fi
35+
3336
declare -a PROJECT_PATHS=($(
3437
for CODELAB in "${CODELABS[@]}"
3538
do

flutter_ci_script_dev.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@ cd ./plugin_codelab
1717
$FLUTTER format --dry-run --set-exit-if-changed .;
1818
popd
1919

20-
declare -ar CODELABS=(
20+
declare -a CODELABS=(
2121
"add_flutter_to_android_app"
2222
"cupertino_store"
2323
"firebase-get-to-know-flutter"
2424
"github-graphql-client"
2525
"google-maps-in-flutter"
26-
# Plugin codelab's example project is unhappy with ubuntu-latest
27-
# "plugin_codelab"
2826
"startup_namer"
29-
# Tracking issue: https://github.com/flutter/flutter/issues/74209
30-
# "testing_codelab"
27+
# Tracking issue: https://github.com/flutter/flutter/issues/74209
28+
# "testing_codelab"
3129
)
3230

31+
# Plugin codelab is failing on ubuntu-latest in CI.
32+
if [[ "$OSTYPE" != "linux-gnu"* ]]; then
33+
CODELABS+=("plugin_codelab")
34+
fi
35+
3336
declare -a PROJECT_PATHS=($(
3437
for CODELAB in "${CODELABS[@]}"
3538
do

flutter_ci_script_stable.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,21 @@ cd ./plugin_codelab
1717
$FLUTTER format --dry-run --set-exit-if-changed .;
1818
popd
1919

20-
declare -ar CODELABS=(
20+
declare -a CODELABS=(
2121
"add_flutter_to_android_app"
2222
"cupertino_store"
2323
"firebase-get-to-know-flutter"
2424
"github-graphql-client"
2525
"google-maps-in-flutter"
26-
# Plugin codelab's example project is unhappy with ubuntu-latest
27-
# "plugin_codelab"
2826
"startup_namer"
2927
"testing_codelab"
3028
)
3129

30+
# Plugin codelab is failing on ubuntu-latest in CI.
31+
if [[ "$OSTYPE" != "linux-gnu"* ]]; then
32+
CODELABS+=("plugin_codelab")
33+
fi
34+
3235
declare -a PROJECT_PATHS=($(
3336
for CODELAB in "${CODELABS[@]}"
3437
do

plugin_codelab/.idea/libraries/Dart_SDK.xml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin_codelab/android/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.5.0'
11+
classpath 'com.android.tools.build:gradle:4.1.0'
1212
}
1313
}
1414

@@ -22,12 +22,9 @@ rootProject.allprojects {
2222
apply plugin: 'com.android.library'
2323

2424
android {
25-
compileSdkVersion 29
25+
compileSdkVersion 30
2626

2727
defaultConfig {
2828
minSdkVersion 16
2929
}
30-
lintOptions {
31-
disable 'InvalidPackage'
32-
}
3330
}

plugin_codelab/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip

plugin_codelab/example/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,8 @@ app.*.symbols
3939

4040
# Obfuscation related
4141
app.*.map.json
42+
43+
# Android Studio will place build artifacts here
44+
/android/app/debug
45+
/android/app/profile
46+
/android/app/release

plugin_codelab/example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# PluginCodelab_example
1+
# plugin_codelab_example
22

3-
Demonstrates how to use the PluginCodelab plugin.
3+
Demonstrates how to use the plugin_codelab plugin.
44

55
## Getting Started
66

plugin_codelab/example/android/app/build.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,13 @@ apply plugin: 'com.android.application'
2525
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2626

2727
android {
28-
compileSdkVersion 29
29-
30-
lintOptions {
31-
disable 'InvalidPackage'
32-
}
28+
compileSdkVersion 30
3329

3430
defaultConfig {
3531
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3632
applicationId "com.example.plugin_codelab_example"
3733
minSdkVersion 16
38-
targetSdkVersion 29
34+
targetSdkVersion 30
3935
versionCode flutterVersionCode.toInteger()
4036
versionName flutterVersionName
4137
}

plugin_codelab/example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.example.plugin_codelab_example">
3-
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
4-
calls FlutterMain.startInitialization(this); in its onCreate method.
5-
In most cases you can leave this as-is, but you if you want to provide
6-
additional functionality it is fine to subclass or reimplement
7-
FlutterApplication and put your custom class here. -->
8-
<application
9-
android:name="io.flutter.app.FlutterApplication"
3+
<application
104
android:label="plugin_codelab_example"
115
android:icon="@mipmap/ic_launcher">
126
<activity

0 commit comments

Comments
 (0)