Remove free build hack
This commit is contained in:
parent
f7409c08a6
commit
2c70db7074
|
@ -66,7 +66,7 @@ workflows:
|
||||||
build-steps:
|
build-steps:
|
||||||
- run:
|
- run:
|
||||||
name: Build free (for F-Droid)
|
name: Build free (for F-Droid)
|
||||||
command: ./gradlew assembleFreeRelease -PdisablePreDex -PfreeBuild
|
command: ./gradlew assembleFreeRelease -PdisablePreDex
|
||||||
|
|
||||||
static-analysis:
|
static-analysis:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
@ -156,14 +156,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
freeImplementation project(":core")
|
implementation project(":core")
|
||||||
// free build hack: skip some dependencies
|
|
||||||
if (!doFreeBuild()) {
|
|
||||||
playImplementation project(":core")
|
|
||||||
implementation 'com.google.android.play:core:1.8.0'
|
|
||||||
} else {
|
|
||||||
System.out.println("app: free build hack, skipping some dependencies")
|
|
||||||
}
|
|
||||||
|
|
||||||
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
|
annotationProcessor "androidx.annotation:annotation:$annotationVersion"
|
||||||
implementation "androidx.appcompat:appcompat:$appcompatVersion"
|
implementation "androidx.appcompat:appcompat:$appcompatVersion"
|
||||||
|
@ -199,6 +192,8 @@ dependencies {
|
||||||
implementation 'com.github.ByteHamster:SearchPreference:v2.0.0'
|
implementation 'com.github.ByteHamster:SearchPreference:v2.0.0'
|
||||||
implementation 'com.github.skydoves:balloon:1.1.5'
|
implementation 'com.github.skydoves:balloon:1.1.5'
|
||||||
|
|
||||||
|
// Non-free dependencies:
|
||||||
|
playImplementation 'com.google.android.play:core:1.8.0'
|
||||||
compileOnly "com.google.android.wearable:wearable:$wearableSupportVersion"
|
compileOnly "com.google.android.wearable:wearable:$wearableSupportVersion"
|
||||||
|
|
||||||
androidTestImplementation "org.awaitility:awaitility:$awaitilityVersion"
|
androidTestImplementation "org.awaitility:awaitility:$awaitilityVersion"
|
||||||
|
|
|
@ -85,11 +85,6 @@ wrapper {
|
||||||
gradleVersion = "6.3"
|
gradleVersion = "6.3"
|
||||||
}
|
}
|
||||||
|
|
||||||
// free build hack: common functions
|
|
||||||
def doFreeBuild() {
|
|
||||||
return hasProperty("freeBuild")
|
|
||||||
}
|
|
||||||
|
|
||||||
apply plugin: "checkstyle"
|
apply plugin: "checkstyle"
|
||||||
checkstyle {
|
checkstyle {
|
||||||
toolVersion '8.24'
|
toolVersion '8.24'
|
||||||
|
|
|
@ -96,17 +96,12 @@ dependencies {
|
||||||
implementation 'com.google.android.exoplayer:exoplayer:2.11.8'
|
implementation 'com.google.android.exoplayer:exoplayer:2.11.8'
|
||||||
implementation "com.github.AntennaPod:AntennaPod-AudioPlayer:$audioPlayerVersion"
|
implementation "com.github.AntennaPod:AntennaPod-AudioPlayer:$audioPlayerVersion"
|
||||||
|
|
||||||
// Add casting features
|
// Non-free dependencies:
|
||||||
// free build hack: skip some dependencies
|
playApi 'com.google.android.libraries.cast.companionlibrary:ccl:2.9.1'
|
||||||
if (!doFreeBuild()) {
|
playApi 'androidx.mediarouter:mediarouter:1.0.0'
|
||||||
playApi 'com.google.android.libraries.cast.companionlibrary:ccl:2.9.1'
|
playApi 'com.google.android.gms:play-services-cast:8.4.0'
|
||||||
api 'androidx.mediarouter:mediarouter:1.0.0'
|
playApi "com.google.android.support:wearable:$wearableSupportVersion"
|
||||||
playApi 'com.google.android.gms:play-services-cast:8.4.0'
|
compileOnly "com.google.android.wearable:wearable:$wearableSupportVersion"
|
||||||
api "com.google.android.support:wearable:$wearableSupportVersion"
|
|
||||||
compileOnly "com.google.android.wearable:wearable:$wearableSupportVersion"
|
|
||||||
} else {
|
|
||||||
System.out.println("core: free build hack, skipping some dependencies")
|
|
||||||
}
|
|
||||||
|
|
||||||
// bundle conscrypt with free builds
|
// bundle conscrypt with free builds
|
||||||
freeImplementation "org.conscrypt:conscrypt-android:$conscryptVersion"
|
freeImplementation "org.conscrypt:conscrypt-android:$conscryptVersion"
|
||||||
|
|
Loading…
Reference in New Issue