Skip to content

Commit 9859edb

Browse files
committed
updated build config
1 parent 21f745c commit 9859edb

File tree

76 files changed

+406
-476
lines changed

Some content is hidden

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

76 files changed

+406
-476
lines changed

BuilderPattern/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ buildscript {
1818

1919

2020

21-
subprojects {
22-
apply from: '../../dependencies.gradle'
23-
}
24-
2521
task clean(type: Delete) {
2622
delete rootProject.buildDir
2723
}
24+
25+
subprojects {
26+
apply from: '../../dependencies.gradle'
27+
}

ChromeCustomTabs/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies {
3939
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoCoreVer"
4040

4141
implementation "androidx.appcompat:appcompat:$appCompat"
42-
implementation "com.google.android.material:material:$supportLibVer"
42+
implementation "com.google.android.material:material:$material"
4343

4444
// Chrome Custom Tabs
4545
implementation "androidx.browser:browser:$supportLibVer"

CustomBroadcastPermissions/app/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
23

34
android {
45
compileSdk compileSdkVer
5-
6+
67
flavorDimensions "default"
78
defaultConfig {
8-
applicationId "sample.github.nisrulz.custombroadcastpermissions"
9+
applicationId "github.nisrulz.example.custombroadcastpermissions"
910
minSdk minSdkVer
1011
targetSdk targetSdkVer
1112
versionCode 1
1213
versionName "1.0"
1314
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1415
}
15-
16+
1617
buildTypes {
1718
release {
1819
minifyEnabled false
@@ -37,11 +38,11 @@ android {
3738

3839
dependencies {
3940
implementation fileTree(dir: 'libs', include: ['*.jar'])
40-
41+
4142
// Testing-only dependencies
4243
testImplementation "junit:junit:$junitVer"
4344
androidTestImplementation "androidx.test:runner:$androidTestRunnerVer"
4445
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoCoreVer"
45-
46+
4647
implementation "androidx.appcompat:appcompat:$appCompat"
4748
}

DataBinding/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ dependencies {
3232
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoCoreVer"
3333

3434
implementation "androidx.appcompat:appcompat:$appCompat"
35-
implementation "com.google.android.material:material:$supportLibVer"
35+
implementation "com.google.android.material:material:$material"
3636
}

DataBinding/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ buildscript {
1515
}
1616
}
1717

18+
task clean(type: Delete) {
19+
delete rootProject.buildDir
20+
}
21+
1822
subprojects {
1923
apply from: '../../dependencies.gradle'
2024
}
2125

22-
task clean(type: Delete) {
23-
delete rootProject.buildDir
24-
}
26+

DebuggingWebViews/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ buildscript {
1515
}
1616
}
1717

18-
subprojects {
19-
apply from: '../../dependencies.gradle'
20-
}
21-
2218
task clean(type: Delete) {
2319
delete rootProject.buildDir
2420
}
21+
22+
subprojects {
23+
apply from: '../../dependencies.gradle'
24+
}

Encryption/app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
23

34
android {
45
compileSdk compileSdkVer
@@ -32,5 +33,5 @@ dependencies {
3233
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoCoreVer"
3334

3435
implementation "androidx.appcompat:appcompat:$appCompat"
35-
implementation "com.google.android.material:material:$supportLibVer"
36+
implementation "com.google.android.material:material:$material"
3637
}

Encryption/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ buildscript {
1515
}
1616
}
1717

18-
subprojects {
19-
apply from: '../../dependencies.gradle'
20-
}
21-
2218
task clean(type: Delete) {
2319
delete rootProject.buildDir
2420
}
21+
22+
subprojects {
23+
apply from: '../../dependencies.gradle'
24+
}

FingerprintAPI/app/build.gradle

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
23

34
android {
4-
compileSdk compileSdkVer
5-
6-
defaultConfig {
7-
applicationId "github.nisrulz.sample.fingerprintapi"
8-
minSdk 23
9-
targetSdk targetSdkVer
10-
versionCode 1
11-
versionName "1.0"
12-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
13-
}
14-
5+
compileSdk compileSdkVer
6+
7+
defaultConfig {
8+
applicationId "github.nisrulz.example.fingerprintapi"
9+
minSdk 23
10+
targetSdk targetSdkVer
11+
versionCode 1
12+
versionName "1.0"
13+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14+
}
15+
1516
buildTypes {
1617
release {
1718
minifyEnabled false
@@ -24,14 +25,12 @@ android {
2425

2526
dependencies {
2627
implementation fileTree(dir: 'libs', include: ['*.jar'])
27-
28+
29+
implementation "androidx.appcompat:appcompat:$appCompat"
30+
implementation "com.google.android.material:material:$material"
31+
2832
// Testing-only dependencies
2933
testImplementation "junit:junit:$junitVer"
3034
androidTestImplementation "androidx.test:runner:$androidTestRunnerVer"
3135
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoCoreVer"
32-
33-
implementation "androidx.appcompat:appcompat:$appCompat"
34-
35-
//Design support Library
36-
implementation "com.google.android.material:material:$supportLibVer"
3736
}

FingerprintAPI/build.gradle

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
apply from: '../dependencies.gradle'
4+
apply from: '../dependencies.gradle'
55

6-
repositories {
7-
mavenCentral()
8-
google()
9-
}
10-
dependencies {
11-
classpath "com.android.tools.build:gradle:$androidGradlePlugin"
12-
13-
// NOTE: Do not place your application dependencies here; they belong
14-
// in the individual module build.gradle files
15-
}
6+
repositories {
7+
google()
8+
mavenCentral()
9+
}
10+
dependencies {
11+
classpath "com.android.tools.build:gradle:$androidGradlePlugin"
12+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
13+
// NOTE: Do not place your application dependencies here; they belong
14+
// in the individual module build.gradle files
15+
}
1616
}
1717

18-
allprojects {
19-
repositories {
20-
mavenCentral()
21-
google()
22-
}
18+
task clean(type: Delete) {
19+
delete rootProject.buildDir
2320
}
2421

2522
subprojects {
26-
apply from: '../../dependencies.gradle'
27-
}
28-
29-
task clean(type: Delete) {
30-
delete rootProject.buildDir
23+
apply from: '../../dependencies.gradle'
3124
}

FirebaseCloudMessaging/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
23

34
android {
4-
compileSdk compileSdkVer
5-
5+
compileSdk compileSdkVer
66

7-
defaultConfig {
7+
defaultConfig {
88
applicationId "sample.github.nisrulz.firebasecloudmessaging"
99
minSdk minSdkVer
1010
targetSdk targetSdkVer

FirebaseCloudMessaging/build.gradle

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,27 @@ buildscript {
44
apply from: '../dependencies.gradle'
55

66
repositories {
7-
mavenCentral()
8-
google()
9-
}
7+
google()
8+
mavenCentral()
9+
}
1010
dependencies {
1111
classpath "com.android.tools.build:gradle:$androidGradlePlugin"
12-
12+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
1313
// NOTE: Do not place your application dependencies here; they belong
1414
// in the individual module build.gradle files
1515

1616
classpath "com.google.gms:google-services:$googleServicesPluginVer"
1717
}
1818
}
1919

20-
allprojects {
21-
repositories {
22-
mavenCentral()
23-
google()
24-
}
20+
21+
22+
task clean(type: Delete) {
23+
delete rootProject.buildDir
2524
}
2625

2726
subprojects {
2827
apply from: '../../dependencies.gradle'
2928
}
3029

31-
task clean(type: Delete) {
32-
delete rootProject.buildDir
33-
}
30+

GCMNetworkManager/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
23

34
android {
4-
compileSdk compileSdkVer
5-
5+
compileSdk compileSdkVer
66

7-
defaultConfig {
7+
defaultConfig {
88
applicationId "github.nisrulz.sample.gcmnetworkmanager"
99
minSdk minSdkVer
1010
targetSdk targetSdkVer

GCMNetworkManager/build.gradle

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,23 @@ buildscript {
44
apply from: '../dependencies.gradle'
55

66
repositories {
7-
mavenCentral()
8-
google()
9-
}
7+
google()
8+
mavenCentral()
9+
}
1010
dependencies {
1111
classpath "com.android.tools.build:gradle:$androidGradlePlugin"
12-
12+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
1313
// NOTE: Do not place your application dependencies here; they belong
1414
// in the individual module build.gradle files
1515
}
1616
}
1717

18-
allprojects {
19-
repositories {
20-
mavenCentral()
21-
google()
22-
}
18+
task clean(type: Delete) {
19+
delete rootProject.buildDir
2320
}
2421

2522
subprojects {
2623
apply from: '../../dependencies.gradle'
2724
}
2825

29-
task clean(type: Delete) {
30-
delete rootProject.buildDir
31-
}
26+

GPSLocation/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
23

34
android {
45
compileSdk compileSdkVer

GPSLocation/build.gradle

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,23 @@ buildscript {
44
apply from: '../dependencies.gradle'
55

66
repositories {
7-
mavenCentral()
8-
google()
9-
}
7+
google()
8+
mavenCentral()
9+
}
1010
dependencies {
1111
classpath "com.android.tools.build:gradle:$androidGradlePlugin"
12-
12+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
1313
// NOTE: Do not place your application dependencies here; they belong
1414
// in the individual module build.gradle files
1515
}
1616
}
1717

18-
allprojects {
19-
repositories {
20-
mavenCentral()
21-
google()
22-
}
23-
}
2418

25-
subprojects {
26-
apply from: '../../dependencies.gradle'
27-
}
2819

2920
task clean(type: Delete) {
3021
delete rootProject.buildDir
3122
}
23+
24+
subprojects {
25+
apply from: '../../dependencies.gradle'
26+
}

GestureDetection/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
23

34
android {
4-
compileSdk compileSdkVer
5-
5+
compileSdk compileSdkVer
66

7-
defaultConfig {
7+
defaultConfig {
88
applicationId "github.nisrulz.sample.gesturedetection"
99
minSdk minSdkVer
1010
targetSdk targetSdkVer

0 commit comments

Comments
 (0)