~singpolyma/cheogram-android

d18e0a05244e517002eb1b52e3613b9a44448940 — Stephen Paul Weber 3 years ago b99f9d4
Set up for CI

Import some build system patches from fdroid.
2 files changed, 30 insertions(+), 16 deletions(-)

A .builds/debian-stable.yml
M build.gradle
A .builds/debian-stable.yml => .builds/debian-stable.yml +27 -0
@@ 0,0 1,27 @@
image: debian/stable
sources:
- https://git.sr.ht/~singpolyma/cheogram-android
artifacts:
- cheogram.apk
packages:
- wget
- unzip
- android-sdk
environment:
  ANDROID_SDK_ROOT: /home/build/android
tasks:
- sdk: |
    wget -qO android.zip https://dl.google.com/android/repository/commandlinetools-linux-6987402_latest.zip
    unzip -qq android.zip
    mkdir -p android/cmdline-tools
    mv cmdline-tools android/cmdline-tools/tools
    echo y | android/cmdline-tools/tools/bin/sdkmanager "platforms;android-29"
    echo y | android/cmdline-tools/tools/bin/sdkmanager "platform-tools"
    echo y | android/cmdline-tools/tools/bin/sdkmanager "build-tools;29.0.2"
    touch ~/.android/repositories.cfg
    yes | android/cmdline-tools/tools/bin/sdkmanager --licenses
- build: |
    cd cheogram-android
    ./gradlew assembleConversationsFreeCompatDebug
- assets: |
    mv cheogram-android/build/outputs/apk/conversationsFreeCompat/debug/*.apk cheogram.apk

M build.gradle => build.gradle +3 -16
@@ 78,7 78,7 @@ dependencies {

    implementation 'com.google.guava:guava:30.1.1-android'
    quicksyImplementation 'io.michaelrocks:libphonenumber-android:8.12.18'
    implementation fileTree(include: ['libwebrtc-m90.aar'], dir: 'libs')
    implementation 'org.webrtc:google-webrtc:1.0.32006'
}

ext {


@@ 103,12 103,6 @@ android {
        buildConfigField "String", "APP_NAME", "\"$appName\"";
    }

    splits {
        abi {
            universalApk true
            enable true
        }
    }

    configurations {
        compile.exclude group: 'org.jetbrains' , module:'annotations'


@@ 259,6 253,7 @@ android {

    lintOptions {
        disable 'MissingTranslation', 'InvalidPackage','AppCompatResource'
        abortOnError false
    }

    subprojects {


@@ 269,6 264,7 @@ android {

                configure(android.lintOptions) {
                    disable 'AndroidGradlePluginVersion', 'MissingTranslation'
                    abortOnError false
                }
            }



@@ 280,13 276,4 @@ android {
        exclude 'META-INF/BCKEY.SF'
    }

    android.applicationVariants.all { variant ->
        variant.outputs.each { output ->
            def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
            if (baseAbiVersionCode != null) {
                output.versionCodeOverride = (100 * variant.versionCode) + baseAbiVersionCode
            }
        }

    }
}