Skip to content

Commit

Permalink
fix: Fat AAR
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed May 14, 2024
1 parent c40baae commit 3930028
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ buildscript {
repositories {
google()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}")
classpath 'com.github.kezong:fat-aar:1.3.8'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
22 changes: 16 additions & 6 deletions mobile-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
id "org.jetbrains.dokka"
id 'maven-publish'
id "signing"
id "com.kezong.fat-aar"
}

def signingKey = findProperty('signingKey')
Expand All @@ -32,8 +33,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 34
versionCode 48
versionName "1.0.50"
versionCode 52
versionName "1.0.54"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand All @@ -59,16 +60,25 @@ dependencies {
dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.6.20")
//noinspection GradleDependency
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9', optional
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'org.greenrobot:eventbus:3.3.1'

api 'com.orhanobut:logger:2.2.0'
embed('com.google.code.gson:gson:2.9.0') {
exclude(group:'androidx.annotation', module:'annotation')
}
embed('org.greenrobot:eventbus:3.3.1') {
exclude(group:'androidx.annotation', module:'annotation')
}
embed('com.orhanobut:logger:2.2.0') {
exclude(group:'androidx.annotation', module:'annotation')
}

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'org.assertj:assertj-core:3.21.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
}

fataar {
transitive = true
}

dokkaHtml.configure {
dokkaSourceSets {
named("main") {
Expand Down

0 comments on commit 3930028

Please sign in to comment.