Skip to content

Commit a410e68

Browse files
committed
make activies exported to support API 32 on Android.
1 parent acc3d0c commit a410e68

File tree

241 files changed

+726
-574
lines changed

Some content is hidden

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

241 files changed

+726
-574
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,7 @@ $RECYCLE.BIN/
301301

302302

303303
### Firebase Google Services file ###
304-
google-services.json
304+
google-services.json
305+
306+
*.lst
307+
*.md5

AccessingGoogleDrive/app/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion compileSdkVer
4+
compileSdk compileSdkVer
55

66

77
defaultConfig {
88
applicationId "github.nisrulz.sample.accessinggoogledrive"
9-
minSdkVersion minSdkVer
10-
targetSdkVersion targetSdkVer
9+
minSdk minSdkVer
10+
targetSdk targetSdkVer
1111
versionCode 1
1212
versionName "1.0"
1313

AccessingGoogleDrive/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
android:label="@string/app_name"
1111
android:supportsRtl="true"
1212
android:theme="@style/AppTheme">
13-
<activity android:name=".MainActivity">
13+
<activity android:name=".MainActivity" android:exported="true">
1414
<intent-filter>
1515
<action android:name="android.intent.action.MAIN"/>
1616

ActivityLifecycle/app/build.gradle

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion compileSdkVer
4+
compileSdk compileSdkVer
55

66

77
defaultConfig {
88
applicationId "github.nisrulz.activitylifecycle"
9-
minSdkVersion minSdkVer
10-
targetSdkVersion targetSdkVer
9+
minSdk minSdkVer
10+
targetSdk targetSdkVer
1111
versionCode 1
1212
versionName "1.0"
1313

@@ -16,9 +16,11 @@ android {
1616
buildTypes {
1717
release {
1818
minifyEnabled false
19-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
19+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2020
}
2121
}
22+
23+
buildFeatures { viewBinding true }
2224
}
2325

2426
dependencies {

ActivityLifecycle/app/src/main/AndroidManifest.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
android:label="@string/app_name"
99
android:supportsRtl="true"
1010
android:theme="@style/AppTheme">
11-
<activity
12-
android:name=".MainActivity"
11+
<activity android:name=".MainActivity" android:exported="true"
1312
android:label="@string/app_name"
1413
android:theme="@style/AppTheme.NoActionBar">
1514
<intent-filter>

AnimatedGradientBackground/app/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion compileSdkVer
4+
compileSdk compileSdkVer
55

66
defaultConfig {
77
applicationId "sample.github.nisrulz.animatedgradientbackground"
8-
minSdkVersion minSdkVer
9-
targetSdkVersion targetSdkVer
8+
minSdk minSdkVer
9+
targetSdk targetSdkVer
1010
versionCode 1
1111
versionName "1.0"
1212

AnimatedGradientBackground/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
android:roundIcon="@mipmap/ic_launcher_round"
1010
android:supportsRtl="true"
1111
android:theme="@style/AppTheme">
12-
<activity android:name=".MainActivity">
12+
<activity android:name=".MainActivity" android:exported="true">
1313
<intent-filter>
1414
<action android:name="android.intent.action.MAIN"/>
1515

AppShortcuts/app/build.gradle

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion compileSdkVer
4+
compileSdk compileSdkVer
55

66
defaultConfig {
77
applicationId "github.nisrulz.sample.appshortcuts"
8-
minSdkVersion 25
9-
targetSdkVersion 25
8+
minSdk 25
9+
targetSdk 25
1010
versionCode 1
1111
versionName "1.0"
1212

@@ -15,9 +15,11 @@ android {
1515
buildTypes {
1616
release {
1717
minifyEnabled false
18-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
1919
}
2020
}
21+
22+
buildFeatures { viewBinding true }
2123
}
2224

2325
dependencies {

AppShortcuts/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
android:label="@string/app_name"
99
android:supportsRtl="true"
1010
android:theme="@style/AppTheme">
11-
<activity android:name=".MainActivity">
11+
<activity android:name=".MainActivity" android:exported="true">
1212
<intent-filter>
1313
<action android:name="android.intent.action.MAIN" />
1414

AppShortcuts/gradle.properties

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Project-wide Gradle settings.
2+
3+
# IDE (e.g. Android Studio) users:
4+
# Gradle settings configured through the IDE *will override*
5+
# any settings specified in this file.
6+
7+
# For more details on how to configure your build environment visit
8+
# http://www.gradle.org/docs/current/userguide/build_environment.html
9+
10+
# Specifies the JVM arguments used for the daemon process.
11+
# The setting is particularly useful for tweaking memory settings.
12+
org.gradle.jvmargs=-Xmx1536m
13+
14+
# When configured, Gradle will run in incubating parallel mode.
15+
# This option should only be used with decoupled projects. More details, visit
16+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17+
# org.gradle.parallel=true
18+
# When set to true, the Android plugin uses the appropriate AndroidX library
19+
# instead of a Support Library. The flag is false by default if it is not specified.
20+
android.useAndroidX=true
21+
22+
# When set to true, the Android plugin automatically migrates existing third-party
23+
# libraries to use AndroidX by rewriting their binaries. The flag is false by default if it
24+
# is not specified.
25+
android.enableJetifier=true

AudioRecording/app/build.gradle

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion compileSdkVer
4+
compileSdk compileSdkVer
55

66

77
defaultConfig {
88
applicationId "github.nisrulz.audiorecording"
9-
minSdkVersion minSdkVer
10-
targetSdkVersion targetSdkVer
9+
minSdk minSdkVer
10+
targetSdk targetSdkVer
1111
versionCode 1
1212
versionName "1.0"
1313

@@ -16,9 +16,11 @@ android {
1616
buildTypes {
1717
release {
1818
minifyEnabled false
19-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
19+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2020
}
2121
}
22+
23+
buildFeatures { viewBinding true }
2224
}
2325

2426
dependencies {

AudioRecording/app/src/main/AndroidManifest.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
android:label="@string/app_name"
1414
android:supportsRtl="true"
1515
android:theme="@style/AppTheme">
16-
<activity
17-
android:name=".MainActivity"
16+
<activity android:name=".MainActivity" android:exported="true"
1817
android:label="@string/app_name"
1918
android:theme="@style/AppTheme.NoActionBar">
2019
<intent-filter>

AudioRecording/app/src/main/java/github/nisrulz/audiorecording/RecordAudio.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import java.io.IOException;
88

99
public class RecordAudio {
10-
private final String LOGTAG = getClass().getSimpleName().toString();
10+
private final String LOGTAG = getClass().getSimpleName();
1111
MediaRecorder mRecorder = null;
1212
private boolean isRecording = false;
1313

AutoCompleteTextview/app/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion compileSdkVer
4+
compileSdk compileSdkVer
55

66
defaultConfig {
77
applicationId "nisrulz.github.example.autocompletetextview"
8-
minSdkVersion minSdkVer
9-
targetSdkVersion targetSdkVer
8+
minSdk minSdkVer
9+
targetSdk targetSdkVer
1010
versionCode 1
1111
versionName "1.0"
1212

AutoCompleteTextview/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
android:roundIcon="@mipmap/ic_launcher_round"
1010
android:supportsRtl="true"
1111
android:theme="@style/AppTheme">
12-
<activity android:name=".MainActivity">
12+
<activity android:name=".MainActivity" android:exported="true">
1313
<intent-filter>
1414
<action android:name="android.intent.action.MAIN"/>
1515

AutoInitLibrary/app/build.gradle

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,26 @@ apply plugin: 'kotlin-android'
55
apply plugin: 'kotlin-android-extensions'
66

77
android {
8-
compileSdkVersion compileSdkVer
8+
compileSdk compileSdkVer
99

1010

1111
defaultConfig {
1212
applicationId "github.nisrulz.sample.autoinitlibrary"
13-
minSdkVersion minSdkVer
14-
targetSdkVersion targetSdkVer
13+
minSdk minSdkVer
14+
targetSdk targetSdkVer
1515
versionCode 1
1616
versionName "1.0"
1717
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1818
}
1919
buildTypes {
2020
release {
2121
minifyEnabled false
22-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
22+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2323
}
2424
}
2525

26+
buildFeatures { viewBinding true }
27+
2628
compileOptions {
2729
sourceCompatibility JavaVersion.VERSION_1_8
2830
targetCompatibility JavaVersion.VERSION_1_8

AutoInitLibrary/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
android:roundIcon="@mipmap/ic_launcher_round"
1010
android:supportsRtl="true"
1111
android:theme="@style/AppTheme">
12-
<activity android:name=".MainActivity">
12+
<activity android:name=".MainActivity" android:exported="true">
1313
<intent-filter>
1414
<action android:name="android.intent.action.MAIN" />
1515

AutoInitLibrary/awesomelib/build.gradle

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion compileSdkVer
4+
compileSdk compileSdkVer
55

66

77
defaultConfig {
8-
minSdkVersion minSdkVer
9-
targetSdkVersion targetSdkVer
8+
minSdk minSdkVer
9+
targetSdk targetSdkVer
1010
versionCode 1
1111
versionName "1.0"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -15,9 +15,11 @@ android {
1515
buildTypes {
1616
release {
1717
minifyEnabled false
18-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
1919
}
2020
}
21+
22+
buildFeatures { viewBinding true }
2123
}
2224

2325
dependencies {

BasicMVP/app/build.gradle

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion compileSdkVer
4+
compileSdk compileSdkVer
55

66

77
defaultConfig {
88
applicationId "github.nisrulz.sample.basicmvp"
9-
minSdkVersion minSdkVer
10-
targetSdkVersion targetSdkVer
9+
minSdk minSdkVer
10+
targetSdk targetSdkVer
1111
versionCode 1
1212
versionName "1.0"
1313

@@ -17,9 +17,11 @@ android {
1717
buildTypes {
1818
release {
1919
minifyEnabled false
20-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
20+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2121
}
2222
}
23+
24+
buildFeatures { viewBinding true }
2325
}
2426

2527
dependencies {

BasicMVP/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
android:label="@string/app_name"
99
android:supportsRtl="true"
1010
android:theme="@style/AppTheme">
11-
<activity android:name=".MainActivity">
11+
<activity android:name=".MainActivity" android:exported="true">
1212
<intent-filter>
1313
<action android:name="android.intent.action.MAIN"/>
1414

BottomNavigationView/app/build.gradle

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion compileSdkVer
4+
compileSdk compileSdkVer
55

66
defaultConfig {
77
applicationId "github.nisrulz.sample.bottomnavigationview"
8-
minSdkVersion minSdkVer
9-
targetSdkVersion targetSdkVer
8+
minSdk minSdkVer
9+
targetSdk targetSdkVer
1010
versionCode 1
1111
versionName "1.0"
1212

@@ -16,9 +16,11 @@ android {
1616
buildTypes {
1717
release {
1818
minifyEnabled false
19-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
19+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2020
}
2121
}
22+
23+
buildFeatures { viewBinding true }
2224
}
2325

2426
dependencies {

BottomNavigationView/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
android:label="@string/app_name"
99
android:supportsRtl="true"
1010
android:theme="@style/AppTheme">
11-
<activity android:name=".MainActivity">
11+
<activity android:name=".MainActivity" android:exported="true">
1212
<intent-filter>
1313
<action android:name="android.intent.action.MAIN"/>
1414

0 commit comments

Comments
 (0)