fix(CON--) : Fix app deployment wip
All checks were successful
gitea-openium/consentium.droid/pipeline/head This commit looks good
All checks were successful
gitea-openium/consentium.droid/pipeline/head This commit looks good
This commit is contained in:
parent
3ffd190406
commit
0f4a3254e4
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -10,7 +10,7 @@ openiumDroidJob modules: [
|
||||
"app": [
|
||||
unitTestTasks: ["testDevDebugUnitTest"],
|
||||
testTasks: ["pixel5DevDebugAndroidTest"],
|
||||
publishApkVariants : ["devRelease", "demoRelease", "prodRelease"],
|
||||
publishApkVariants : ["devDebug", "devRelease", "demoRelease", "prodRelease"],
|
||||
],
|
||||
]
|
||||
publishChannel: '#int-consentium'
|
@ -1,7 +1,7 @@
|
||||
import com.android.build.api.dsl.ManagedVirtualDevice
|
||||
import org.gradle.language.nativeplatform.internal.BuildType
|
||||
import java.io.FileInputStream
|
||||
import java.util.Properties
|
||||
import com.android.build.api.dsl.ManagedVirtualDevice
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.ksp)
|
||||
@ -10,7 +10,9 @@ plugins {
|
||||
alias(libs.plugins.hilt)
|
||||
alias(libs.plugins.serialization)
|
||||
alias(libs.plugins.kotlin.compose)
|
||||
id("fr.openium.publish")
|
||||
}
|
||||
apply(from = "publish.build.gradle")
|
||||
|
||||
// Keystore
|
||||
val keystorePropertiesFile = rootProject.file("keys/keystore.properties")
|
||||
@ -25,8 +27,6 @@ android {
|
||||
applicationId = "fr.openium.consentium"
|
||||
minSdk = libs.versions.minSdk.get().toInt()
|
||||
targetSdk = libs.versions.targetSdk.get().toInt()
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
@ -148,5 +148,4 @@ dependencies {
|
||||
|
||||
// Kotlin serialization
|
||||
implementation(libs.kotlin.serialization)
|
||||
|
||||
}
|
6
app/publish.build.gradle
Normal file
6
app/publish.build.gradle
Normal file
@ -0,0 +1,6 @@
|
||||
android {
|
||||
defaultConfig {
|
||||
versionName publish.versionName
|
||||
versionCode publish.versionCode
|
||||
}
|
||||
}
|
@ -17,8 +17,6 @@ import org.junit.Assert.*
|
||||
class ExampleInstrumentedTest {
|
||||
@Test
|
||||
fun useAppContext() {
|
||||
// Context of the app under test.
|
||||
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
|
||||
assertEquals("fr.openium.consentium", appContext.packageName)
|
||||
assertTrue(true)
|
||||
}
|
||||
}
|
3
app/version.properties
Normal file
3
app/version.properties
Normal file
@ -0,0 +1,3 @@
|
||||
#Wed Sep 27 10:07:57 CEST 2023
|
||||
VERSION_NAME=1.0.0
|
||||
VERSION_CODE=1
|
@ -20,4 +20,13 @@ plugins {
|
||||
|
||||
// Kotlin serialization
|
||||
alias(libs.plugins.serialization) apply false
|
||||
}
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven { url = uri("https://maven.openium.fr/") }
|
||||
}
|
||||
dependencies {
|
||||
classpath(libs.openium.publish)
|
||||
}
|
||||
}
|
@ -1,13 +1,10 @@
|
||||
package fr.openium.consentium_ui
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
|
||||
import org.junit.Assert.*
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
@ -17,8 +14,6 @@ import org.junit.Assert.*
|
||||
class ExampleInstrumentedTest {
|
||||
@Test
|
||||
fun useAppContext() {
|
||||
// Context of the app under test.
|
||||
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
|
||||
assertEquals("fr.openium.consentium_ui.test", appContext.packageName)
|
||||
assertTrue(true)
|
||||
}
|
||||
}
|
@ -1,13 +1,10 @@
|
||||
package fr.openium.consentium
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
|
||||
import org.junit.Assert.*
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
@ -17,8 +14,6 @@ import org.junit.Assert.*
|
||||
class ExampleInstrumentedTest {
|
||||
@Test
|
||||
fun useAppContext() {
|
||||
// Context of the app under test.
|
||||
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
|
||||
assertEquals("fr.openium.consentium.test", appContext.packageName)
|
||||
assertTrue(true)
|
||||
}
|
||||
}
|
@ -73,6 +73,9 @@ foundationLayoutAndroid = "1.7.5"
|
||||
uiAndroid = "1.7.5"
|
||||
material3Android = "1.3.1"
|
||||
|
||||
# Publish
|
||||
publish = "1.2"
|
||||
|
||||
[libraries]
|
||||
|
||||
# AndroidX
|
||||
@ -146,6 +149,9 @@ coil-network = { module = "io.coil-kt.coil3:coil-network-okhttp", version.ref =
|
||||
# Rich text formating
|
||||
rich-text = { module = "com.mohamedrejeb.richeditor:richeditor-compose", version = "1.0.0-rc05-k2" }
|
||||
|
||||
# Publish
|
||||
openium-publish = { group = "fr.openium", name = "publish-plugin", version.ref = "publish" }
|
||||
|
||||
[plugins]
|
||||
android-application = { id = "com.android.application", version.ref = "agp" }
|
||||
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user