Skip to content

Commit 2046857

Browse files
authored
Merge pull request #340 from vincent-paing/fix/android_12_exported_requirements
Upgrade build configuration to use sdk 31 instead
2 parents 5adc52d + 580c0ac commit 2046857

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ def safeExtGet(prop, fallback) {
2121
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
2222
}
2323

24-
def DEFAULT_COMPILE_SDK_VERSION = 28
25-
def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
24+
def DEFAULT_COMPILE_SDK_VERSION = 31
25+
def DEFAULT_BUILD_TOOLS_VERSION = "31.0.0"
2626
def DEFAULT_MIN_SDK_VERSION = 16
27-
def DEFAULT_TARGET_SDK_VERSION = 28
27+
def DEFAULT_TARGET_SDK_VERSION = 31
2828

2929
android {
3030
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)

android/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
<application>
88
<activity
9-
android:name=".ChromeTabsManagerActivity">
9+
android:name=".ChromeTabsManagerActivity"
10+
android:exported="false">
1011
</activity>
1112
</application>
1213
<queries>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
android:label="@string/app_name"
1717
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
1818
android:launchMode="singleTask"
19+
android:exported="true"
1920
android:windowSoftInputMode="adjustResize">
2021
<intent-filter>
2122
<action android:name="android.intent.action.MAIN" />

example/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
buildscript {
44
ext {
5-
buildToolsVersion = "30.0.2"
5+
buildToolsVersion = "31.0.0"
66
minSdkVersion = 21
7-
compileSdkVersion = 30
8-
targetSdkVersion = 30
7+
compileSdkVersion = 31
8+
targetSdkVersion = 31
99
ndkVersion = "21.4.7075529"
1010
androidXAnnotation = "1.2.0"
1111
androidXBrowser = "1.3.0"
@@ -15,7 +15,7 @@ buildscript {
1515
mavenCentral()
1616
}
1717
dependencies {
18-
classpath("com.android.tools.build:gradle:4.2.2")
18+
classpath("com.android.tools.build:gradle:7.0.0")
1919
// NOTE: Do not place your application dependencies here; they belong
2020
// in the individual module build.gradle files
2121
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)