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

Commit 88f8477

Browse files
committed
Update SafDemos sample's gradle
This commit updates the Gradle version of the SafDemos sample. - Updates the Gradle version to 7.5. - Updates the AGP version to 7.4.2. - Updates the Kotlin version to 1.6.21. - Sets the namespace in the module build file. - Added exported=true to MainActivity
1 parent d163b6e commit 88f8477

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

SafDemos/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ android {
4545
viewBinding {
4646
enabled = true
4747
}
48+
namespace 'com.android.samples.safdemos'
4849
}
4950

5051
dependencies {

SafDemos/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
~ limitations under the License.
1616
-->
1717

18-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19-
package="com.android.samples.safdemos">
18+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2019

2120
<application
2221
android:allowBackup="true"
@@ -25,7 +24,9 @@
2524
android:roundIcon="@mipmap/ic_launcher_round"
2625
android:supportsRtl="true"
2726
android:theme="@style/AppTheme">
28-
<activity android:name=".MainActivity">
27+
<activity android:name=".MainActivity"
28+
android:exported="true"
29+
>
2930
<intent-filter>
3031
<action android:name="android.intent.action.MAIN" />
3132

SafDemos/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
// Top-level build file where you can add configuration options common to all sub-projects/modules.
1818

1919
buildscript {
20-
ext.kotlin_version = '1.3.71'
20+
ext.kotlin_version = '1.6.21'
2121
repositories {
2222
google()
2323
jcenter()
2424

2525
}
2626
dependencies {
27-
classpath 'com.android.tools.build:gradle:7.0.1'
27+
classpath 'com.android.tools.build:gradle:7.4.2'
2828
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2929

3030
// NOTE: Do not place your application dependencies here; they belong
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Fri Aug 27 23:32:13 KST 2021
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)