Skip to content

Commit 7028dd4

Browse files
authored
Enable support for writing Kotlin files. (#451)
1 parent 72090e0 commit 7028dd4

File tree

8 files changed

+15
-14
lines changed

8 files changed

+15
-14
lines changed

AndroidSDK/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'com.android.library'
3+
id 'kotlin-android'
34
id 'com.jfrog.artifactory' version '4.13.0'
45
id 'maven-publish'
56
id 'signing'
@@ -15,8 +16,7 @@ allprojects {
1516
}
1617

1718
dependencies {
18-
debugApi project(':AndroidSDKCore')
19-
releaseApi project(':AndroidSDKCore')
19+
api project(':AndroidSDKCore')
2020
}
2121

2222
android {

AndroidSDKCore/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'com.android.library'
3+
id 'kotlin-android'
34
id 'com.jfrog.artifactory' version '4.13.0'
45
id 'maven-publish'
56
id 'signing'

AndroidSDKFcm/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'com.android.library'
3+
id 'kotlin-android'
34
id 'com.jfrog.artifactory' version '4.13.0'
45
id 'maven-publish'
56
id 'signing'
@@ -29,10 +30,8 @@ android {
2930
}
3031

3132
dependencies {
32-
debugApi project(':AndroidSDKCore')
33-
releaseApi project(':AndroidSDKCore')
34-
debugApi project(':AndroidSDKPush')
35-
releaseApi project(':AndroidSDKPush')
33+
api project(':AndroidSDKCore')
34+
api project(':AndroidSDKPush')
3635

3736
// Provided dependencies are optional dependencies and will not show up in pom file.
3837
compileOnly('com.google.firebase:firebase-messaging:[17.3.4, 21.1.0]') {

AndroidSDKLocation/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'com.android.library'
3+
id 'kotlin-android'
34
id 'com.jfrog.artifactory' version '4.13.0'
45
id 'maven-publish'
56
id 'signing'
@@ -29,8 +30,7 @@ android {
2930
}
3031

3132
dependencies {
32-
debugApi project(':AndroidSDKCore')
33-
releaseApi project(':AndroidSDKCore')
33+
api project(':AndroidSDKCore')
3434

3535
// Provided dependencies are optional dependencies and will not show up in pom file.
3636
compileOnly('com.google.android.gms:play-services-location:[10.0.0,)') {

AndroidSDKMiPush/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'com.android.library'
3+
id 'kotlin-android'
34
id 'com.jfrog.artifactory' version '4.13.0'
45
id 'maven-publish'
56
id 'signing'
@@ -29,10 +30,8 @@ android {
2930
}
3031

3132
dependencies {
32-
debugApi project(':AndroidSDKCore')
33-
releaseApi project(':AndroidSDKCore')
34-
debugApi project(':AndroidSDKPush')
35-
releaseApi project(':AndroidSDKPush')
33+
api project(':AndroidSDKCore')
34+
api project(':AndroidSDKPush')
3635

3736
// MiPush SDK is located in libs
3837
implementation fileTree(dir: 'libs', include: ['*.jar'])

AndroidSDKPush/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'com.android.library'
3+
id 'kotlin-android'
34
id 'com.jfrog.artifactory' version '4.13.0'
45
id 'maven-publish'
56
id 'signing'
@@ -28,8 +29,7 @@ android {
2829
}
2930

3031
dependencies {
31-
debugApi project(':AndroidSDKCore')
32-
releaseApi project(':AndroidSDKCore')
32+
api project(':AndroidSDKCore')
3333
}
3434

3535
task generateJavadoc(type: Javadoc) {

AndroidSDKTests/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
apply from: "../common-methods.gradle"
34
apply plugin: 'com.facebook.testing.screenshot'
45

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildscript {
77
}
88
dependencies {
99
classpath 'com.android.tools.build:gradle:4.2.0'
10+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32"
1011
}
1112
}
1213

0 commit comments

Comments
 (0)