Skip to content

Commit

Permalink
fix: fix android aar issue (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingzhuozhen authored May 12, 2022
1 parent a2c5968 commit 69f5fe7
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 5 deletions.
11 changes: 7 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'com.kezong.fat-aar'
}

ext {
Expand Down Expand Up @@ -51,10 +52,12 @@ android {
}

dependencies {
api project(':common')
api project(':common-android')
api project(':id')
api project(':core')
embed project(':common')
embed project(':common-jvm')
embed project(':common-android')
embed project(':core')
embed project(':event-bridge')
embed project(':id')
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'

Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ buildscript {
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.1"
classpath "io.github.gradle-nexus:publish-plugin:1.1.0"
classpath "de.mannodermaus.gradle.plugins:android-junit5:1.8.2.0"
classpath 'com.github.kezong:fat-aar:1.3.8'
}
}

Expand All @@ -34,6 +35,8 @@ allprojects{

apply plugin: "org.jlleitschuh.gradle.ktlint"
apply plugin: 'org.jetbrains.dokka'

group GROUP
}

tasks.dokkaHtmlMultiModule.configure {
Expand Down
1 change: 1 addition & 0 deletions common-jvm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ test {

dependencies {
api project(":common")
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation platform("org.junit:junit-bom:5.7.2")
testImplementation "org.junit.jupiter:junit-jupiter"
}
6 changes: 5 additions & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ plugins {
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
1 change: 1 addition & 0 deletions event-bridge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test {
useJUnitPlatform()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation platform("org.junit:junit-bom:5.7.2")
testImplementation "org.junit.jupiter:junit-jupiter"
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ POM_DEVELOPER_ORG=Amplitude
POM_DEVELOPER_ORG_URL=https://amplitude.com/
RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2/
SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots/
GROUP=com.amplitude
1 change: 1 addition & 0 deletions id/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ test {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation platform("org.junit:junit-bom:5.7.2")
testImplementation "org.junit.jupiter:junit-jupiter"
}
1 change: 1 addition & 0 deletions samples/java-android-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ android {
}

dependencies {
implementation project(':core')
implementation project(':android')
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
Expand Down
1 change: 1 addition & 0 deletions samples/kotlin-android-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ android {
}

dependencies {
implementation project(':core')
implementation project(':android')
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
Expand Down

0 comments on commit 69f5fe7

Please sign in to comment.