Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f966cee authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Replace gplayapi prebuilt with maven dependency

parent a9a648aa
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -110,8 +110,7 @@ allOpen {

dependencies {

    // prebuilt from https://gitlab.e.foundation/e/os/gplayapi/
    api files('libs/gplayapi-3.0.1.jar')
    implementation 'foundation.e:gplayapi:3.0.1'
    implementation 'androidx.core:core-ktx:1.7.0'
    implementation 'androidx.appcompat:appcompat:1.4.1'
    implementation 'com.google.android.material:material:1.5.0'

app/libs/gplayapi-3.0.1.jar

deleted100644 → 0
−3.78 MiB

File deleted.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+46 −0
Original line number Diff line number Diff line
@@ -4,6 +4,52 @@ dependencyResolutionManagement {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }

        // Gitlab repository configuration for gplayapi dependency
        def ciJobToken = System.getenv("CI_JOB_TOKEN")
        def ciApiV4Url = System.getenv("CI_API_V4_URL")

        if (ciJobToken != null) {
            // Build on CI
            maven {
                url "https://gitlab.e.foundation/api/v4/projects/1269/packages/maven"
                name "GitLab"
                credentials(HttpHeaderCredentials) {
                    name = 'Job-Token'
                    value = ciJobToken
                }
                authentication {
                    header(HttpHeaderAuthentication)
                }
            }
        } else {
            // Build locally
            // To build locally, you should set the gitLabPrivateToken variable with
            // your Gitlab Private Token in your ./local.properties file:
            //
            // gitLabPrivateToken=YOUR_TOKEN
            //
            // To create a Private Token, go to:
            // https://gitlab.e.foundation/e/os/gplayapi/-/settings/access_tokens
            // and tick "api" as scope.

            def localProperties = new Properties()
            localProperties.load(new FileInputStream(rootProject.projectDir.path + "/local.properties"))

            maven {
                url "https://gitlab.e.foundation/api/v4/projects/1269/packages/maven"
                name "GitLab"

                credentials(HttpHeaderCredentials) {
                    name = 'Private-Token'
                    value = localProperties['gitLabPrivateToken']
                }
                authentication {
                    header(HttpHeaderAuthentication)
                }
            }
        }

    }
}
rootProject.name = "App Lounge"