Loading build.gradle +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ plugins { id "org.jetbrains.kotlin.plugin.allopen" version "1.8.0" id 'androidx.navigation.safeargs' version '2.5.3' apply false id 'io.gitlab.arturbosch.detekt' version '1.23.1' id 'org.jetbrains.kotlin.jvm' version '1.8.0' apply false } allprojects { Loading contracts/.gitignore 0 → 100644 +1 −0 Original line number Diff line number Diff line /build No newline at end of file contracts/build.gradle 0 → 100644 +48 −0 Original line number Diff line number Diff line plugins { id 'java-library' id 'org.jetbrains.kotlin.jvm' id 'maven-publish' } java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } publishing { publications { aar(MavenPublication) { groupId = 'foundation.e.apps' artifactId = 'contracts' version = '1.0.0' artifact("$buildDir/libs/${project.name}.jar") pom { name = 'Contracts' description = 'Constants to be used in App Lounge content provider' licenses { license { name = 'The Apache Software License, Version 2.0' url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' } } } } } repositories { maven { name = "GitLab" url = uri("https://gitlab.e.foundation/api/v4/projects/355/packages/maven") credentials(HttpHeaderCredentials) { name = "Job-Token" value = System.getenv("CI_JOB_TOKEN") } authentication { header(HttpHeaderAuthentication) } } } } contracts/src/main/java/foundation/e/apps/contracts/ProviderContracts.kt 0 → 100644 +31 −0 Original line number Diff line number Diff line /* * Copyright MURENA SAS 2024 * Apps Quickly and easily install Android apps onto your device! * * 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/>. * */ package foundation.e.apps.contracts object ProviderContracts { const val COLUMN_PACKAGE_NAME = "package_name" const val COLUMN_LOGIN_TYPE = "login_type" const val PATH_LOGIN_TYPE = "login_type" const val PATH_BLOCKLIST = "block_list" fun getAppLoungeProviderAuthority(isDebug: Boolean = false) = "foundation.e.apps${if (isDebug) ".debug" else ""}.provider" } No newline at end of file settings.gradle +1 −0 Original line number Diff line number Diff line Loading @@ -62,3 +62,4 @@ dependencyResolutionManagement { } rootProject.name = "App Lounge" include ':app' include ':contracts' Loading
build.gradle +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ plugins { id "org.jetbrains.kotlin.plugin.allopen" version "1.8.0" id 'androidx.navigation.safeargs' version '2.5.3' apply false id 'io.gitlab.arturbosch.detekt' version '1.23.1' id 'org.jetbrains.kotlin.jvm' version '1.8.0' apply false } allprojects { Loading
contracts/.gitignore 0 → 100644 +1 −0 Original line number Diff line number Diff line /build No newline at end of file
contracts/build.gradle 0 → 100644 +48 −0 Original line number Diff line number Diff line plugins { id 'java-library' id 'org.jetbrains.kotlin.jvm' id 'maven-publish' } java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } publishing { publications { aar(MavenPublication) { groupId = 'foundation.e.apps' artifactId = 'contracts' version = '1.0.0' artifact("$buildDir/libs/${project.name}.jar") pom { name = 'Contracts' description = 'Constants to be used in App Lounge content provider' licenses { license { name = 'The Apache Software License, Version 2.0' url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' } } } } } repositories { maven { name = "GitLab" url = uri("https://gitlab.e.foundation/api/v4/projects/355/packages/maven") credentials(HttpHeaderCredentials) { name = "Job-Token" value = System.getenv("CI_JOB_TOKEN") } authentication { header(HttpHeaderAuthentication) } } } }
contracts/src/main/java/foundation/e/apps/contracts/ProviderContracts.kt 0 → 100644 +31 −0 Original line number Diff line number Diff line /* * Copyright MURENA SAS 2024 * Apps Quickly and easily install Android apps onto your device! * * 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/>. * */ package foundation.e.apps.contracts object ProviderContracts { const val COLUMN_PACKAGE_NAME = "package_name" const val COLUMN_LOGIN_TYPE = "login_type" const val PATH_LOGIN_TYPE = "login_type" const val PATH_BLOCKLIST = "block_list" fun getAppLoungeProviderAuthority(isDebug: Boolean = false) = "foundation.e.apps${if (isDebug) ".debug" else ""}.provider" } No newline at end of file
settings.gradle +1 −0 Original line number Diff line number Diff line Loading @@ -62,3 +62,4 @@ dependencyResolutionManagement { } rootProject.name = "App Lounge" include ':app' include ':contracts'