mirror of
https://github.com/twofas/2fas-android.git
synced 2024-11-24 11:19:57 +01:00
Add fastlane
This commit is contained in:
parent
8f9a980431
commit
56159f8c12
5
.gitignore
vendored
5
.gitignore
vendored
@ -2,7 +2,11 @@
|
|||||||
/local.properties
|
/local.properties
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/build
|
/build
|
||||||
|
/artifacts
|
||||||
|
/fastlane
|
||||||
/captures
|
/captures
|
||||||
|
Gemfile
|
||||||
|
Gemfile.lock
|
||||||
|
|
||||||
# Built application files
|
# Built application files
|
||||||
/*/build/
|
/*/build/
|
||||||
@ -32,6 +36,7 @@ local.properties
|
|||||||
ehthumbs.db
|
ehthumbs.db
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
|
|
||||||
scripts/json-to-kotlin/.idea/
|
scripts/json-to-kotlin/.idea/
|
||||||
|
|
||||||
# Secrets
|
# Secrets
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.archivesName
|
||||||
|
|
||||||
@Suppress("DSL_SCOPE_VIOLATION")
|
@Suppress("DSL_SCOPE_VIOLATION")
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.twofasAndroidApplication)
|
alias(libs.plugins.twofasAndroidApplication)
|
||||||
@ -13,6 +15,16 @@ plugins {
|
|||||||
android {
|
android {
|
||||||
namespace = "com.twofasapp"
|
namespace = "com.twofasapp"
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
applicationId = "com.twofasapp"
|
||||||
|
versionName = "4.7.0"
|
||||||
|
versionCode = 5000000
|
||||||
|
|
||||||
|
val versionCodeOffset = 5000000
|
||||||
|
|
||||||
|
archivesName.set("TwoFas-$versionName-${versionCode!! - versionCodeOffset}")
|
||||||
|
}
|
||||||
|
|
||||||
ksp {
|
ksp {
|
||||||
arg("room.schemaLocation", "$projectDir/schemas")
|
arg("room.schemaLocation", "$projectDir/schemas")
|
||||||
}
|
}
|
||||||
@ -96,4 +108,4 @@ dependencies {
|
|||||||
releaseImplementation("io.objectbox:objectbox-android:2.9.1")
|
releaseImplementation("io.objectbox:objectbox-android:2.9.1")
|
||||||
implementation("io.objectbox:objectbox-kotlin:2.9.1")
|
implementation("io.objectbox:objectbox-kotlin:2.9.1")
|
||||||
kapt("io.objectbox:objectbox-processor:2.9.1")
|
kapt("io.objectbox:objectbox-processor:2.9.1")
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,6 @@ import com.twofasapp.buildlogic.extension.applySigningConfigs
|
|||||||
import com.twofasapp.buildlogic.version.AppConfig
|
import com.twofasapp.buildlogic.version.AppConfig
|
||||||
import org.gradle.api.Plugin
|
import org.gradle.api.Plugin
|
||||||
import org.gradle.api.Project
|
import org.gradle.api.Project
|
||||||
import org.gradle.api.plugins.BasePluginExtension
|
|
||||||
import org.gradle.kotlin.dsl.configure
|
import org.gradle.kotlin.dsl.configure
|
||||||
|
|
||||||
class TwoFasAndroidApplicationPlugin : Plugin<Project> {
|
class TwoFasAndroidApplicationPlugin : Plugin<Project> {
|
||||||
@ -18,10 +17,6 @@ class TwoFasAndroidApplicationPlugin : Plugin<Project> {
|
|||||||
apply("org.jetbrains.kotlin.android")
|
apply("org.jetbrains.kotlin.android")
|
||||||
}
|
}
|
||||||
|
|
||||||
extensions.configure<BasePluginExtension> {
|
|
||||||
archivesName.set(AppConfig.apkName)
|
|
||||||
}
|
|
||||||
|
|
||||||
extensions.configure<ApplicationExtension> {
|
extensions.configure<ApplicationExtension> {
|
||||||
applyKotlinAndroid(this)
|
applyKotlinAndroid(this)
|
||||||
applySigningConfigs(this)
|
applySigningConfigs(this)
|
||||||
@ -30,8 +25,6 @@ class TwoFasAndroidApplicationPlugin : Plugin<Project> {
|
|||||||
defaultConfig {
|
defaultConfig {
|
||||||
multiDexEnabled = true
|
multiDexEnabled = true
|
||||||
targetSdk = AppConfig.targetSdk
|
targetSdk = AppConfig.targetSdk
|
||||||
versionCode = AppConfig.versionCode
|
|
||||||
versionName = AppConfig.versionName
|
|
||||||
|
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
}
|
}
|
||||||
|
@ -4,13 +4,4 @@ object AppConfig {
|
|||||||
const val minSdk = 23
|
const val minSdk = 23
|
||||||
const val targetSdk = 34
|
const val targetSdk = 34
|
||||||
const val compileSdk = 34
|
const val compileSdk = 34
|
||||||
|
|
||||||
private const val verMajor = 4
|
|
||||||
private const val verMinor = 7
|
|
||||||
private const val verPatch = 0
|
|
||||||
private const val verInternal = 0
|
|
||||||
|
|
||||||
const val versionCode = verMajor * 1000000 + verMinor * 10000 + verPatch * 100 + verInternal
|
|
||||||
const val versionName = "${verMajor}.${verMinor}.${verPatch}"
|
|
||||||
const val apkName = "TwoFas-${verMajor}.${verMinor}.${verPatch}-${verInternal}"
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user