Skip to content

Commit

Permalink
Using git submodules for all dependencies and now only one repo is ne…
Browse files Browse the repository at this point in the history
…cessary to pull in order to build the APK.
  • Loading branch information
bagaturchess committed Nov 10, 2022
1 parent 5ee9d3b commit caf17ad
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 13 deletions.
12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[submodule "Android_LIB_Commons"]
path = Android_LIB_Commons
url = https://github.com/MetatransApps/Android_LIB_Commons
[submodule "Android_LIB_CommonsAds"]
path = Android_LIB_CommonsAds
url = https://github.com/MetatransApps/Android_LIB_CommonsAds
[submodule "Android_LIB_Commons2D"]
path = Android_LIB_Commons2D
url = https://github.com/MetatransApps/Android_LIB_Commons2D
[submodule "Android_APP_2DBalloons"]
path = Android_APP_2DBalloons
url = https://github.com/MetatransApps/Android_APP_2DBalloons
1 change: 1 addition & 0 deletions Android_APP_2DBalloons
Submodule Android_APP_2DBalloons added at 85552e
1 change: 1 addition & 0 deletions Android_LIB_Commons
Submodule Android_LIB_Commons added at 5c9024
1 change: 1 addition & 0 deletions Android_LIB_Commons2D
Submodule Android_LIB_Commons2D added at ac1940
1 change: 1 addition & 0 deletions Android_LIB_CommonsAds
Submodule Android_LIB_CommonsAds added at 1028d6
12 changes: 3 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,21 @@ android {
}

buildTypes {

release {

minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

namespace 'com.stoptheballs'

android.applicationVariants.all { variant ->
variant.outputs.all {
println variant.name
if (variant.name.contains("release")) {
outputFileName = new File("../../../../../../release", "com.stoptheballs_${variant.versionCode}_ads_home.apk")
println outputFileName
}
}
}
}

dependencies {
Expand Down
8 changes: 4 additions & 4 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include ':Android_LIB_CommonsAds'
include ':Android_LIB_Commons2D'
include ':Android_APP_2DBalloons'

project(':Android_LIB_Commons').projectDir = new File('./../Android_LIB_Commons/app')
project(':Android_LIB_CommonsAds').projectDir = new File('./../Android_LIB_CommonsAds/app')
project(':Android_LIB_Commons2D').projectDir = new File('./../Android_LIB_Commons2D/app')
project(':Android_APP_2DBalloons').projectDir = new File('./../Android_APP_2DBalloons/app')
project(':Android_LIB_Commons').projectDir = new File('./Android_LIB_Commons/app')
project(':Android_LIB_CommonsAds').projectDir = new File('./Android_LIB_CommonsAds/app')
project(':Android_LIB_Commons2D').projectDir = new File('./Android_LIB_Commons2D/app')
project(':Android_APP_2DBalloons').projectDir = new File('./Android_APP_2DBalloons/app')

0 comments on commit caf17ad

Please sign in to comment.