Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 033363c

Browse files
author
Emmanuel Garcia
authored
Bump Android version and add more info to create_sdk_cipd_package.sh (#27413)
1 parent 609295a commit 033363c

File tree

46 files changed

+369
-973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+369
-973
lines changed

DEPS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ allowed_hosts = [
101101
]
102102

103103
deps = {
104-
'src': 'https://github.com/flutter/buildroot.git' + '@' + '97a255eb289ca5b6e03a6c93e2182cdcffce0b76',
104+
'src': 'https://github.com/flutter/buildroot.git' + '@' + '1ba15ce9a85debe5f4efc21699a9f760af165a64',
105105

106106
# Fuchsia compatibility
107107
#
@@ -474,7 +474,7 @@ deps = {
474474
'packages': [
475475
{
476476
'package': 'flutter/android/sdk/build-tools/${{platform}}',
477-
'version': 'version:30.0.2'
477+
'version': 'version:31.0.0S'
478478
}
479479
],
480480
'condition': 'download_android_deps',
@@ -485,7 +485,7 @@ deps = {
485485
'packages': [
486486
{
487487
'package': 'flutter/android/sdk/platform-tools/${{platform}}',
488-
'version': 'version:30.0.4'
488+
'version': 'version:31.0.2S'
489489
}
490490
],
491491
'condition': 'download_android_deps',
@@ -496,7 +496,7 @@ deps = {
496496
'packages': [
497497
{
498498
'package': 'flutter/android/sdk/platforms',
499-
'version': 'version:30r3'
499+
'version': 'version:31S'
500500
}
501501
],
502502
'condition': 'download_android_deps',

shell/platform/android/AndroidManifest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-->
66
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="io.flutter.app" android:versionCode="1" android:versionName="0.0.1">
77

8-
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="21" />
8+
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="31" />
99
<uses-permission android:name="android.permission.INTERNET" />
1010
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
1111
<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true" />
@@ -16,7 +16,8 @@
1616
android:launchMode="standard"
1717
android:name="FlutterActivity"
1818
android:theme="@android:style/Theme.Black.NoTitleBar"
19-
android:windowSoftInputMode="adjustResize">
19+
android:windowSoftInputMode="adjustResize"
20+
android:exported="true">
2021
<intent-filter>
2122
<action android:name="android.intent.action.MAIN" />
2223
<category android:name="android.intent.category.LAUNCHER" />

shell/platform/android/io/flutter/embedding/android/FlutterView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ public AccessibilityNodeProvider getAccessibilityNodeProvider() {
845845
* @param accessibilityId The view accessibility id.
846846
* @return The view matching the accessibility id if any.
847847
*/
848-
@SuppressLint("PrivateApi")
848+
@SuppressLint("SoonBlockedPrivateApi")
849849
public View findViewByAccessibilityIdTraversal(int accessibilityId) {
850850
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
851851
return findViewByAccessibilityIdRootedAtCurrentView(accessibilityId, this);

testing/android_background_image/android/app/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ android {
1313
// The others are irrelevant for a test application.
1414
disable 'UnpackedNativeCode','MissingApplicationIcon','GoogleAppIndexingApiWarning','GoogleAppIndexingWarning','GradleDependency','NewerVersionAvailable'
1515
}
16-
compileSdkVersion 30
16+
buildToolsVersion = '31.0.0'
17+
compileSdkVersion 31
1718
compileOptions {
18-
sourceCompatibility JavaVersion.VERSION_1_8
19-
targetCompatibility JavaVersion.VERSION_1_8
19+
sourceCompatibility JavaVersion.VERSION_11
20+
targetCompatibility JavaVersion.VERSION_11
2021
}
2122
defaultConfig {
2223
applicationId 'dev.flutter.android_background_image'
2324
minSdkVersion 16
24-
targetSdkVersion 30
25+
targetSdkVersion 31
2526
versionCode 1
2627
versionName '1.0'
2728
}

testing/android_background_image/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1313
android:hardwareAccelerated="true"
1414
android:launchMode="singleTop"
15-
android:windowSoftInputMode="adjustResize">
15+
android:windowSoftInputMode="adjustResize"
16+
android:exported="true">
1617
<intent-filter>
1718
<action android:name="com.google.intent.action.TEST_LOOP" />
1819
<category android:name="android.intent.category.DEFAULT" />

testing/android_background_image/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
jcenter()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.2.0'
9+
classpath 'com.android.tools.build:gradle:7.0.0'
1010

1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files

testing/android_background_image/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
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-6.7.1-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip

testing/run_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def RunJavaTests(filter, android_variant='android_debug_unopt'):
344344

345345
embedding_deps_dir = os.path.join(buildroot_dir, 'third_party', 'android_embedding_dependencies', 'lib')
346346
classpath = list(map(str, [
347-
os.path.join(buildroot_dir, 'third_party', 'android_tools', 'sdk', 'platforms', 'android-30', 'android.jar'),
347+
os.path.join(buildroot_dir, 'third_party', 'android_tools', 'sdk', 'platforms', 'android-31', 'android.jar'),
348348
os.path.join(embedding_deps_dir, '*'), # Wildcard for all jars in the directory
349349
os.path.join(android_out_dir, 'flutter.jar'),
350350
os.path.join(android_out_dir, 'robolectric_tests.jar')

testing/scenario_app/android/app/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ android {
2424
// The others are irrelevant for a test application.
2525
disable 'UnpackedNativeCode','MissingApplicationIcon','GoogleAppIndexingApiWarning','GoogleAppIndexingWarning','GradleDependency','NewerVersionAvailable','Registered'
2626
}
27-
compileSdkVersion 30
27+
buildToolsVersion = '31.0.0'
28+
compileSdkVersion 31
2829
compileOptions {
29-
sourceCompatibility JavaVersion.VERSION_1_8
30-
targetCompatibility JavaVersion.VERSION_1_8
30+
sourceCompatibility JavaVersion.VERSION_11
31+
targetCompatibility JavaVersion.VERSION_11
3132
}
3233
defaultConfig {
3334
applicationId 'dev.flutter.scenarios'
3435
minSdkVersion 18
35-
targetSdkVersion 30
36+
targetSdkVersion 31
3637
versionCode 1
3738
versionName '1.0'
3839
testInstrumentationRunner 'dev.flutter.TestRunner'

0 commit comments

Comments
 (0)