Skip to content

Commit

Permalink
[#39] Create fat aar of extension module
Browse files Browse the repository at this point in the history
  • Loading branch information
karntrehan committed Mar 28, 2023
1 parent f63e55b commit e151e3f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ buildscript {
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.1.0"
classpath "com.github.ben-manes:gradle-versions-plugin:0.42.0"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.5.1"
classpath 'com.github.kezong:fat-aar:1.3.8'
}
}

Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#You can override this in ~/.gradle/gradle.properties
android.useAndroidX=true
android.enableJetifier=true
org.gradle.jvmargs=-Xmx1536m
org.gradle.jvmargs=-Xmx2560m
org.gradle.parallel=true
test.heap.max=1g
org.gradle.daemon=true
38 changes: 30 additions & 8 deletions odk/extension/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'com.kezong.fat-aar'
}

apply from: '../config/dependencies.gradle'
Expand Down Expand Up @@ -37,13 +38,34 @@ android {
}

dependencies {

api project(":odk:collect:collect_app")
api project(":odk:collect:forms")
api project(":odk:collect:projects")
api project(":odk:collect:settings")
api project(":odk:collect:permissions")
api project(":odk:collect:strings")
implementation fileTree(dir: 'libs', include: '*.jar')

embed project(path: ':odk:collect:projects')
embed project(path: ':odk:collect:shared')
embed project(path: ':odk:collect:forms')
embed project(path: ':odk:collect:analytics')
embed project(path: ':odk:collect:androidshared')
embed project(path: ':odk:collect:audiorecorder')
embed project(path: ':odk:collect:audioclips')
embed project(path: ':odk:collect:strings')
embed project(path: ':odk:collect:async')
embed project(path: ':odk:collect:collect_app')
embed project(path: ':odk:collect:nbistubs')
embed project(path: ':odk:collect:material')
embed project(path: ':odk:collect:location')
embed project(path: ':odk:collect:geo')
embed project(path: ':odk:collect:errors')
embed project(path: ':odk:collect:externalapp')
embed project(path: ':odk:collect:upgrade')
embed project(path: ':odk:collect:permissions')
embed project(path: ':odk:collect:imageloader')
embed project(path: ':odk:collect:settings')
embed project(path: ':odk:collect:maps')
embed project(path: ':odk:collect:osmdroid')
embed project(path: ':odk:collect:icons')
embed project(path: ':odk:collect:crash-handler')
embed project(path: ':odk:collect:entities')
embed project(path: ':odk:collect:selfie-camera')

implementation packages.androidx_core_ktx
implementation packages.androidx_appcompat
Expand All @@ -64,7 +86,7 @@ dependencies {

ext {
PUBLISH_GROUP_ID = 'io.samagra'
PUBLISH_VERSION = '0.0.1'
PUBLISH_VERSION = '0.0.1.1'
PUBLISH_ARTIFACT_ID = 'odk-collect-extension'
}

Expand Down

0 comments on commit e151e3f

Please sign in to comment.