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

Commit 48333f65 authored by Guillaume Jacquart's avatar Guillaume Jacquart
Browse files

Prepare publish settings.

parent 30bad3e6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -24,8 +24,18 @@ TL;DR
# Build

    ./gradlew :privacymodulese:assembleRelease

## To deploy localy duringdevelopment

    ./gradlew --console=verbose publishToMavenLocal

## To push release on gitlab

    ./gradlew --console=verbose publish





# Structure (UML class diagrams)

+2 −2
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ android {

    defaultConfig {
        applicationId "foundation.e.eprivacymoduledemo"
        minSdkVersion 24
        minSdkVersion 26
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
@@ -47,7 +47,7 @@ dependencies {
    //implementation 'foundation.e:privacymodule.e:0.0.2'
    implementation project(path: ':privacymodulese')

    implementation 'foundation.e:privacymodule.api:0.2.1'
    implementation 'foundation.e:privacymodule.api:0.4.1'

    implementation 'androidx.core:core-ktx:1.6.0'
    implementation 'androidx.appcompat:appcompat:1.3.1'
+3 −3
Original line number Diff line number Diff line
@@ -13,15 +13,15 @@ import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import foundation.e.eprivacymoduledemo.databinding.FakeLocationActivityBinding
import foundation.e.privacymodules.location.FakeLocation
import foundation.e.privacymodules.location.IFakeLocation
import foundation.e.privacymodules.location.FakeLocationModule
import foundation.e.privacymodules.location.IFakeLocationModule
import foundation.e.privacymodules.permissions.PermissionsPrivacyModule
import foundation.e.privacymodules.permissions.data.AppOpModes
import foundation.e.privacymodules.permissions.data.ApplicationDescription

class FakeLocationActivity : AppCompatActivity() {

    private val fakeLocationModule: IFakeLocation by lazy { FakeLocation(this) }
    private val fakeLocationModule: IFakeLocationModule by lazy { FakeLocationModule(this) }
    private val permissionsModule by lazy { PermissionsPrivacyModule(this) }

    private lateinit var binding: FakeLocationActivityBinding
+16 −1
Original line number Diff line number Diff line
@@ -9,7 +9,8 @@ android {
    defaultConfig {
        minSdkVersion 24
        targetSdkVersion 29

        versionCode 3
        versionName "0.3.2"
        consumerProguardFiles "consumer-rules.pro"
    }

@@ -54,6 +55,20 @@ publishing {
                    }
                }
            }

            repositories {
                maven {
                    url "https://gitlab.e.foundation/api/v4/projects/781/packages/maven"
                    credentials(HttpHeaderCredentials) {
                        name = "Private-Token"
                        value = gitLabPrivateToken
                        // the variable resides in ~/.gradle/gradle.properties
                    }
                    authentication {
                        header(HttpHeaderAuthentication)
                    }
                }
            }
        }
    }
}
+11 −0
Original line number Diff line number Diff line
@@ -4,6 +4,17 @@ dependencyResolutionManagement {
        google()
        mavenCentral()
        mavenLocal()
        maven {
            url "https://gitlab.e.foundation/api/v4/groups/13662/-/packages/maven"
            name "GitLab"
            credentials(HttpHeaderCredentials) {
                name = 'Private-Token'
                value = gitLabPrivateToken
            }
            authentication {
                header(HttpHeaderAuthentication)
            }
        }
    }
}