summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2022-08-18 07:06:22 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2022-08-18 07:06:22 +0000
commitd7a1777a43a7c2f8329eee318945d8f7705d2b68 (patch)
tree2ade73284374e0e7bc65bbd32074e36d96ccb8c8
parent1b9c519e073a5e64eeeafd747ddac75fde5f88df (diff)
2-Change artifactId for api module, to help cohabitation with permissions module.
-rw-r--r--README.md14
-rw-r--r--app/build.gradle29
-rw-r--r--build.gradle17
-rw-r--r--dependencies.gradle17
-rw-r--r--fakelocation/fakelocationdemo/build.gradle2
-rw-r--r--permissionsstandalone/build.gradle2
-rw-r--r--privacymodule-api/.gitignore (renamed from api/.gitignore)0
-rw-r--r--privacymodule-api/build.gradle (renamed from api/build.gradle)28
-rw-r--r--privacymodule-api/consumer-rules.pro (renamed from api/consumer-rules.pro)0
-rw-r--r--privacymodule-api/proguard-rules.pro (renamed from api/proguard-rules.pro)0
-rw-r--r--privacymodule-api/src/main/AndroidManifest.xml (renamed from api/src/main/AndroidManifest.xml)0
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/DependencyInjector.kt (renamed from api/src/main/java/foundation/e/privacymodules/DependencyInjector.kt)0
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/location/IFakeLocationModule.kt (renamed from api/src/main/java/foundation/e/privacymodules/location/IFakeLocationModule.kt)0
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/APermissionsPrivacyModule.kt (renamed from api/src/main/java/foundation/e/privacymodules/permissions/APermissionsPrivacyModule.kt)0
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/IPermissionsPrivacyModule.kt (renamed from api/src/main/java/foundation/e/privacymodules/permissions/IPermissionsPrivacyModule.kt)0
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/data/AppOpModes.kt (renamed from api/src/main/java/foundation/e/privacymodules/permissions/data/AppOpModes.kt)0
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/data/ApplicationDescription.kt (renamed from api/src/main/java/foundation/e/privacymodules/permissions/data/ApplicationDescription.kt)0
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/data/PermissionDescription.kt (renamed from api/src/main/java/foundation/e/privacymodules/permissions/data/PermissionDescription.kt)0
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/IBlockTrackersPrivacyModule.kt (renamed from api/src/main/java/foundation/e/privacymodules/trackers/IBlockTrackersPrivacyModule.kt)0
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/IDNSBlocker.kt (renamed from api/src/main/java/foundation/e/privacymodules/trackers/IDNSBlocker.kt)0
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/ITrackTrackersPrivacyModule.kt (renamed from api/src/main/java/foundation/e/privacymodules/trackers/ITrackTrackersPrivacyModule.kt)0
-rw-r--r--privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/Tracker.kt (renamed from api/src/main/java/foundation/e/privacymodules/trackers/Tracker.kt)0
-rw-r--r--settings.gradle2
-rw-r--r--trackers/build.gradle5
24 files changed, 93 insertions, 23 deletions
diff --git a/README.md b/README.md
index 6a9ec45..5cc125d 100644
--- a/README.md
+++ b/README.md
@@ -95,11 +95,13 @@ This app requires different modules that must be built indivually and pushed to
modules must be build and deployed in the following order:
-- [privacymodulesapi](../../../e_privacycentral_privacymodulesapi)
-- [privacymodulese](../../../e_privacycentral_privacymodulese)
-- [privacymoduletor](../../../e_privacycentral_privacymoduletor)
-- [privacymoduletrackerfilter](../../../e_privacycentral_privacymoduletrackerfilter)
-
+- privacymodule-api :
+ - ./gradlew :privacymodule-api:assembleRelease
+ - ./gradlew --console=verbose publishToMavenLocal // To make it available locally for dev.
+ - ./gradlew --console=verbose publish // To publish it on gitlab for release.
+- [privacymodule-e](../../../e_privacycentral_privacymodulese)
+- [privacymodule-tor](../../../e_privacycentral_privacymoduletor)
+- [app]
## Build
If you'd like to build PrivacyCentral locally, you should be able to just clone and build with no issues.
@@ -147,7 +149,7 @@ PrivacyCentral needs to be installed as system app and whitelisting in order to
### To run apk on stock android devices
You can simply install the apk. Keep in that mind all features won't be available on stock android devices.
-> Volla!!!, PrivacyCentral is installed successfully in your device.
+> Voila !!!, PrivacyCentral is installed successfully in your device.
# Distribution
This project can be distributed as prebuilt apk with /e/OS or it can be published on other app stores for non /e/OS devices.
diff --git a/app/build.gradle b/app/build.gradle
index 61ee623..9cfc65b 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2022 E FOUNDATION
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
plugins {
id 'com.android.application'
id 'kotlin-android'
@@ -111,17 +128,11 @@ android {
}
dependencies {
- implementation project(':api')
-
+ implementation project(':privacymodule-api')
standaloneImplementation project(':permissionsstandalone')
- e29Implementation('foundation.e:privacymodule.e-29:1.2.0') {
- exclude group: 'foundation.e', module: 'privacymodule.api'
- }
- e30Implementation('foundation.e:privacymodule.e-30:1.2.0') {
- exclude group: 'foundation.e', module: 'privacymodule.api'
- }
-
+ e29Implementation 'foundation.e:privacymodule-e-29:1.2.0'
+ e30Implementation 'foundation.e:privacymodule-e-30:1.2.0'
implementation project(':fakelocation')
e29CompileOnly files('libs/e-ui-sdk-1.0.1-q.jar')
diff --git a/build.gradle b/build.gradle
index 5222057..ec8cf14 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2022 E FOUNDATION
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
import foundation.e.privacycentral.buildsrc.DependencyUpdates
import foundation.e.privacycentral.buildsrc.ReleaseType
diff --git a/dependencies.gradle b/dependencies.gradle
index ed329c7..6c4acb3 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2022 E FOUNDATION
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
def libs = [:]
ext.Libs = libs
diff --git a/fakelocation/fakelocationdemo/build.gradle b/fakelocation/fakelocationdemo/build.gradle
index 12ed2e7..c182b2f 100644
--- a/fakelocation/fakelocationdemo/build.gradle
+++ b/fakelocation/fakelocationdemo/build.gradle
@@ -54,7 +54,7 @@ android {
}
dependencies {
- implementation project(':api')
+ implementation project(':privacymodule-api')
implementation project(':fakelocation')
implementation project(':permissionsstandalone')
diff --git a/permissionsstandalone/build.gradle b/permissionsstandalone/build.gradle
index aadb84f..ef03f2b 100644
--- a/permissionsstandalone/build.gradle
+++ b/permissionsstandalone/build.gradle
@@ -51,8 +51,8 @@ dependencies {
Libs.AndroidX.coreKtx,
Libs.Coroutines.core
)
+ implementation project(':privacymodule-api')
- implementation project(':api')
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
diff --git a/api/.gitignore b/privacymodule-api/.gitignore
index 42afabf..42afabf 100644
--- a/api/.gitignore
+++ b/privacymodule-api/.gitignore
diff --git a/api/build.gradle b/privacymodule-api/build.gradle
index b8ced30..c0b1303 100644
--- a/api/build.gradle
+++ b/privacymodule-api/build.gradle
@@ -1,7 +1,26 @@
+/*
+ * Copyright (C) 2022 E FOUNDATION
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'
+group 'foundation.e'
+
android {
compileSdkVersion buildConfig.compileSdk
@@ -40,9 +59,9 @@ publishing {
maven(MavenPublication) {
groupId 'foundation.e'
//You can either define these here or get them from project conf elsewhere
- artifactId 'privacymodule.api'
+ artifactId 'privacymodule-api'
version buildConfig.version.name
- artifact "$buildDir/outputs/aar/api-release.aar"
+ artifact "$buildDir/outputs/aar/privacymodule-api-release.aar"
//aar artifact you want to publish
//generate pom nodes for dependencies
@@ -73,7 +92,10 @@ publishing {
}
} else {
maven {
- url "https://gitlab.e.foundation/api/v4/projects/900/packages/maven"
+// url "https://gitlab.e.foundation/api/v4/projects/900/packages/maven"
+ // Use privacymodule-e repository (id = 781) for now,
+ // because repository not activated on Advanced Privacy (id = 900)
+ url "https://gitlab.e.foundation/api/v4/projects/781/packages/maven"
credentials(HttpHeaderCredentials) {
name = "Private-Token"
value = gitLabPrivateToken
diff --git a/api/consumer-rules.pro b/privacymodule-api/consumer-rules.pro
index e69de29..e69de29 100644
--- a/api/consumer-rules.pro
+++ b/privacymodule-api/consumer-rules.pro
diff --git a/api/proguard-rules.pro b/privacymodule-api/proguard-rules.pro
index 481bb43..481bb43 100644
--- a/api/proguard-rules.pro
+++ b/privacymodule-api/proguard-rules.pro
diff --git a/api/src/main/AndroidManifest.xml b/privacymodule-api/src/main/AndroidManifest.xml
index 937e285..937e285 100644
--- a/api/src/main/AndroidManifest.xml
+++ b/privacymodule-api/src/main/AndroidManifest.xml
diff --git a/api/src/main/java/foundation/e/privacymodules/DependencyInjector.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/DependencyInjector.kt
index bcf82d2..bcf82d2 100644
--- a/api/src/main/java/foundation/e/privacymodules/DependencyInjector.kt
+++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/DependencyInjector.kt
diff --git a/api/src/main/java/foundation/e/privacymodules/location/IFakeLocationModule.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/location/IFakeLocationModule.kt
index ecad2a4..ecad2a4 100644
--- a/api/src/main/java/foundation/e/privacymodules/location/IFakeLocationModule.kt
+++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/location/IFakeLocationModule.kt
diff --git a/api/src/main/java/foundation/e/privacymodules/permissions/APermissionsPrivacyModule.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/APermissionsPrivacyModule.kt
index 68f7ee1..68f7ee1 100644
--- a/api/src/main/java/foundation/e/privacymodules/permissions/APermissionsPrivacyModule.kt
+++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/APermissionsPrivacyModule.kt
diff --git a/api/src/main/java/foundation/e/privacymodules/permissions/IPermissionsPrivacyModule.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/IPermissionsPrivacyModule.kt
index ba85f13..ba85f13 100644
--- a/api/src/main/java/foundation/e/privacymodules/permissions/IPermissionsPrivacyModule.kt
+++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/IPermissionsPrivacyModule.kt
diff --git a/api/src/main/java/foundation/e/privacymodules/permissions/data/AppOpModes.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/data/AppOpModes.kt
index 367645d..367645d 100644
--- a/api/src/main/java/foundation/e/privacymodules/permissions/data/AppOpModes.kt
+++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/data/AppOpModes.kt
diff --git a/api/src/main/java/foundation/e/privacymodules/permissions/data/ApplicationDescription.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/data/ApplicationDescription.kt
index cafe256..cafe256 100644
--- a/api/src/main/java/foundation/e/privacymodules/permissions/data/ApplicationDescription.kt
+++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/data/ApplicationDescription.kt
diff --git a/api/src/main/java/foundation/e/privacymodules/permissions/data/PermissionDescription.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/data/PermissionDescription.kt
index 9ed297d..9ed297d 100644
--- a/api/src/main/java/foundation/e/privacymodules/permissions/data/PermissionDescription.kt
+++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/permissions/data/PermissionDescription.kt
diff --git a/api/src/main/java/foundation/e/privacymodules/trackers/IBlockTrackersPrivacyModule.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/IBlockTrackersPrivacyModule.kt
index 53b540e..53b540e 100644
--- a/api/src/main/java/foundation/e/privacymodules/trackers/IBlockTrackersPrivacyModule.kt
+++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/IBlockTrackersPrivacyModule.kt
diff --git a/api/src/main/java/foundation/e/privacymodules/trackers/IDNSBlocker.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/IDNSBlocker.kt
index a132aef..a132aef 100644
--- a/api/src/main/java/foundation/e/privacymodules/trackers/IDNSBlocker.kt
+++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/IDNSBlocker.kt
diff --git a/api/src/main/java/foundation/e/privacymodules/trackers/ITrackTrackersPrivacyModule.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/ITrackTrackersPrivacyModule.kt
index 139290e..139290e 100644
--- a/api/src/main/java/foundation/e/privacymodules/trackers/ITrackTrackersPrivacyModule.kt
+++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/ITrackTrackersPrivacyModule.kt
diff --git a/api/src/main/java/foundation/e/privacymodules/trackers/Tracker.kt b/privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/Tracker.kt
index 0a4395a..0a4395a 100644
--- a/api/src/main/java/foundation/e/privacymodules/trackers/Tracker.kt
+++ b/privacymodule-api/src/main/java/foundation/e/privacymodules/trackers/Tracker.kt
diff --git a/settings.gradle b/settings.gradle
index 24b6eef..547bbd1 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -2,6 +2,6 @@ include ':app'
rootProject.name = "PrivacyCentralApp"
include ':fakelocation'
include ':fakelocation:fakelocationdemo'
-include ':api'
+include ':privacymodule-api'
include ':permissionsstandalone'
include ':trackers'
diff --git a/trackers/build.gradle b/trackers/build.gradle
index 51f8448..dec05ff 100644
--- a/trackers/build.gradle
+++ b/trackers/build.gradle
@@ -40,6 +40,7 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}
}
-dependencies{
- implementation project(":api")
+
+dependencies {
+ implementation project(':privacymodule-api')
}