From 732c27603b0eda0572235b81423518cbb306b21b Mon Sep 17 00:00:00 2001 From: kirill ivanov Date: Wed, 2 Apr 2025 14:04:48 +0300 Subject: [PATCH 1/7] refactor(github): change sync logic to reusable workflow --- .github/workflows/sync.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index e5b66c1e..a3557ce6 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -12,7 +12,13 @@ jobs: run: uses: rees46/workflow/.github/workflows/reusable-android-synchronization.yaml@master permissions: write-all - secrets: - token: ${{ secrets.JADE_SMITH_BOT_TOKEN }} with: - targetRepository: personaclick/demo-android + appId: ${{ vars.PERSONACLICK_COURIER_ID }} + targetRepository: personaclick/android-sdk + sourceDirname: rees46 + targetDirname: personaClick + syncIgnore: ".git,.idea,version.properties,app/src/main/res/drawable/ic_app.xml,app/src/main/res/drawable/ic_logo.xml" + replacementExtentions: "LICENSE,*.kts,*.kt,*.md,*.xml,*.toml,*.yml,*.yaml" + replacementContents: "357382bf66ac0ce2f1722677c59511|42a4cd11ebab3b0454778d18d4f3d5,a043dbc2f852ffe18861a2cdfc364ef2|5a57812604806d58d3d98f8e9480cb97,2dbebc39bee259b118bcc0ac3fa74a42|e4fd6e3a19610f7aea5534e96eec69d6,a043dbc2f852ffe18861a2cdfc364ef2|aabc899d3db3d71c4032832e4291c16a,fcaa8d3168ab7d7346e4b4f1a1c92214|09d291f54de95e9e5bde43b343b0b0d7,https://api.rees46.com/|https://api.personaclick.com/,com.rees46:rees46-sdk|com.personaclick:personaclick-sdk,api.rees46.com|api.personaclick.com,rees46.com|personaclick.com,rees46|personaClick,REES46|PersonaClick,Rees46|PersonaClick" + secrets: + privateKey: ${{ secrets.PERSONACLICK_COURIER_SECRET }} From caef93e54c8dd57917fcc3aebdebbbd843485410 Mon Sep 17 00:00:00 2001 From: kirill ivanov Date: Wed, 2 Apr 2025 14:11:33 +0300 Subject: [PATCH 2/7] feat(common): gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index f3a0373f..81060824 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,5 @@ play-account.json # Android Profiling *.hprof + +.local/ From 21f26d4d21b82393900e72b31b940f4f81d1a2c8 Mon Sep 17 00:00:00 2001 From: kirill ivanov Date: Thu, 3 Apr 2025 15:29:52 +0300 Subject: [PATCH 3/7] chore(github): useless chore(github): useless chore(github): useless --- .../{build_apk.yaml => build_apk.yaml.bak} | 0 .../{publish.yaml => publish.yaml.bak} | 0 .github/workflows/sync.yaml | 24 +- .vim/coc-settings.json | 3 + buildConfig/bin/main/AppBuildConfig.kt | 237 ++++++++++++++++++ 5 files changed, 254 insertions(+), 10 deletions(-) rename .github/workflows/{build_apk.yaml => build_apk.yaml.bak} (100%) rename .github/workflows/{publish.yaml => publish.yaml.bak} (100%) create mode 100644 .vim/coc-settings.json create mode 100644 buildConfig/bin/main/AppBuildConfig.kt diff --git a/.github/workflows/build_apk.yaml b/.github/workflows/build_apk.yaml.bak similarity index 100% rename from .github/workflows/build_apk.yaml rename to .github/workflows/build_apk.yaml.bak diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml.bak similarity index 100% rename from .github/workflows/publish.yaml rename to .github/workflows/publish.yaml.bak diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index a3557ce6..67ed66a7 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -1,24 +1,28 @@ name: Sync repositories on: - workflow_run: - workflows: - - "Publish to Play Store and Bump Version" - types: - - completed - workflow_dispatch: + pull_request: + # TODO uncomment + # workflow_run: + # workflows: + # - "Publish to Play Store and Bump Version" + # types: + # - completed + # workflow_dispatch: jobs: run: - uses: rees46/workflow/.github/workflows/reusable-android-synchronization.yaml@master + # TODO uncomment + # uses: rees46/workflow/.github/workflows/reusable-android-synchronization.yaml@master + uses: rees46/workflow/.github/workflows/reusable-android-synchronization.yaml@refactor/reusable-android-synchronization permissions: write-all with: appId: ${{ vars.PERSONACLICK_COURIER_ID }} - targetRepository: personaclick/android-sdk + targetRepository: personaclick/demo-android sourceDirname: rees46 targetDirname: personaClick - syncIgnore: ".git,.idea,version.properties,app/src/main/res/drawable/ic_app.xml,app/src/main/res/drawable/ic_logo.xml" - replacementExtentions: "LICENSE,*.kts,*.kt,*.md,*.xml,*.toml,*.yml,*.yaml" + syncIgnore: ".git,.github/workflows/sync.yaml,.idea,version.properties,app/src/main/res/drawable/ic_app.xml,app/src/main/res/drawable/ic_logo.xml" + replacementExtentions: "*.kts,*.kt,*.md,*.xml,*.toml,*.yml,*.yaml,LICENSE" replacementContents: "357382bf66ac0ce2f1722677c59511|42a4cd11ebab3b0454778d18d4f3d5,a043dbc2f852ffe18861a2cdfc364ef2|5a57812604806d58d3d98f8e9480cb97,2dbebc39bee259b118bcc0ac3fa74a42|e4fd6e3a19610f7aea5534e96eec69d6,a043dbc2f852ffe18861a2cdfc364ef2|aabc899d3db3d71c4032832e4291c16a,fcaa8d3168ab7d7346e4b4f1a1c92214|09d291f54de95e9e5bde43b343b0b0d7,https://api.rees46.com/|https://api.personaclick.com/,com.rees46:rees46-sdk|com.personaclick:personaclick-sdk,api.rees46.com|api.personaclick.com,rees46.com|personaclick.com,rees46|personaClick,REES46|PersonaClick,Rees46|PersonaClick" secrets: privateKey: ${{ secrets.PERSONACLICK_COURIER_SECRET }} diff --git a/.vim/coc-settings.json b/.vim/coc-settings.json new file mode 100644 index 00000000..be975570 --- /dev/null +++ b/.vim/coc-settings.json @@ -0,0 +1,3 @@ +{ + "java.compile.nullAnalysis.mode": "disabled" +} \ No newline at end of file diff --git a/buildConfig/bin/main/AppBuildConfig.kt b/buildConfig/bin/main/AppBuildConfig.kt new file mode 100644 index 00000000..71e7a8c9 --- /dev/null +++ b/buildConfig/bin/main/AppBuildConfig.kt @@ -0,0 +1,237 @@ +@file:Suppress("DEPRECATION") + +import com.android.build.gradle.AppExtension +import com.android.build.gradle.LibraryExtension +import java.io.File +import java.io.FileInputStream +import java.io.FileOutputStream +import java.util.Properties +import org.gradle.api.JavaVersion +import org.gradle.api.Plugin +import org.gradle.api.Project +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + +class AppBuildConfig : Plugin { + + override fun apply(project: Project) { + project.plugins.withId(ANDROID_APPLICATION_LIB) { + configureAppExtension(project.extensions.getByType(AppExtension::class.java), project) + } + + project.plugins.withId(ANDROID_LIB) { + configureLibraryExtension(project.extensions.getByType(LibraryExtension::class.java)) + } + + configureKotlinCompile(project) + } + + private fun configureAppExtension(androidExtension: AppExtension, project: Project) { + val versionPropsFile = File(project.rootProject.projectDir, "version.properties") + val versionProps = Properties() + if (versionPropsFile.exists()) { + versionProps.load(FileInputStream(versionPropsFile)) + } + + val currentVersionCode = versionProps[VERSION_CODE]?.toString()?.toInt() ?: 1 + val currentVersionName = versionProps[VERSION_NAME]?.toString() ?: "1.0.0" + + androidExtension.apply { + compileSdkVersion(TARGET_SDK) + defaultConfig { + applicationId = APPLICATION_ID + minSdk = MIN_SDK + targetSdk = TARGET_SDK + versionCode = currentVersionCode + versionName = currentVersionName + viewBinding { + enable = true + } + } + flavorDimensions(DIMENSION_FLAVORS) + configureProductFlavors() + configureSigningConfigs(project) + configureBuildTypes() + configurePackagingOptions() + configureJavaAndKotlinOptions() + + project.tasks.register(PUBLISH_TO_ITERNAL_TESTING) { + dependsOn(RELEASE_BUNDLE) + finalizedBy(PUBLISH_RELEASE_BUNDLE) + } + + project.tasks.register(INCREMENT_VERSION) { + doLast { + incrementVersion(versionProps, versionPropsFile) + } + } + } + } + + private fun incrementVersion(versionProps: Properties, versionPropsFile: File) { + val currentVersionCode = versionProps[VERSION_CODE]?.toString()?.toInt() ?: 1 + val newVersionCode = currentVersionCode + 1 + + val currentVersionName = versionProps[VERSION_NAME]?.toString() ?: "1.0.0" + val versionNameParts = currentVersionName.split(".").toMutableList() + + if (versionNameParts.size == 3) { + val patchVersion = versionNameParts[2].toIntOrNull() ?: 0 + versionNameParts[2] = (patchVersion + 1).toString() + } + + val newVersionName = versionNameParts.joinToString(".") + + versionProps[VERSION_CODE] = newVersionCode.toString() + versionProps[VERSION_NAME] = newVersionName + versionProps.store(FileOutputStream(versionPropsFile), null) + + println("Version updated to: versionCode=$newVersionCode, versionName=$newVersionName") + } + + private fun AppExtension.configureProductFlavors() { + productFlavors { + create(DEV_FLAVOR) { + dimension = DIMENSION_FLAVORS + } + create(STAGE_FLAVOR) { + dimension = DIMENSION_FLAVORS + applicationIdSuffix = APPLICATION_STAGE_SUFFIX + } + create(PROD_FLAVOR) { + dimension = DIMENSION_FLAVORS + } + } + } + + private fun AppExtension.configureSigningConfigs(project: Project) { + val localProperties = Properties() + val localPropertiesFile = project.rootProject.file(LOCAL_PROPERTIES_FILE) + if (localPropertiesFile.exists()) { + localProperties.load(FileInputStream(localPropertiesFile)) + } + + signingConfigs { + create(RELEASE_CONFIG) { + storeFile = File( + localProperties.getProperty(RELEASE_STORE_FILE) ?: System.getenv("SIGNING_STORE_FILE") + ) + storePassword = localProperties.getProperty(RELEASE_STORE_PASSWORD) ?: System.getenv("SIGNING_STORE_PASSWORD") + keyAlias = localProperties.getProperty(RELEASE_KEY_ALIAS) ?: System.getenv("SIGNING_KEY_ALIAS") + keyPassword = localProperties.getProperty(RELEASE_KEY_PASSWORD) ?: System.getenv("SIGNING_KEY_PASSWORD") + } + create(DEBUG_CONFIG) { + } + } + } + + private fun AppExtension.configureBuildTypes() { + buildTypes { + getByName(RELEASE_TYPE) { + signingConfig = signingConfigs.getByName(RELEASE_CONFIG) + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile(PROGUARD_ANDROID_TXT), + PROGUARD_RULES + ) + } + getByName(DEBUG_TYPE) { + isDebuggable = true + } + } + } + + private fun AppExtension.configurePackagingOptions() { + packagingOptions { + exclude("META-INF/*.kotlin_module") + exclude("META-INF/AL2.0") + exclude("META-INF/LGPL2.1") + } + } + + private fun configureLibraryExtension(androidExtension: LibraryExtension) { + androidExtension.apply { + compileSdk = TARGET_SDK + configureDefaultConfig() + configureBuildTypes() + configureJavaAndKotlinOptions() + } + } + + private fun LibraryExtension.configureDefaultConfig() { + defaultConfig { + minSdk = MIN_SDK + targetSdk = TARGET_SDK + } + } + + private fun LibraryExtension.configureBuildTypes() { + buildTypes { + getByName(RELEASE_TYPE) { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile(PROGUARD_ANDROID_TXT), + PROGUARD_RULES + ) + } + } + } + + private fun configureKotlinCompile(project: Project) { + project.tasks.withType(KotlinCompile::class.java).configureEach { + kotlinOptions { + jvmTarget = JVM_TARGET + } + } + } + + private fun AppExtension.configureJavaAndKotlinOptions() { + compileOptions { + sourceCompatibility = JavaVersion.VERSION_20 + targetCompatibility = JavaVersion.VERSION_20 + } + } + + private fun LibraryExtension.configureJavaAndKotlinOptions() { + compileOptions { + sourceCompatibility = JavaVersion.VERSION_20 + targetCompatibility = JavaVersion.VERSION_20 + } + } + + companion object { + private const val PUBLISH_TO_ITERNAL_TESTING = "publishProdReleaseToPlay" + private const val PUBLISH_RELEASE_BUNDLE = "publishProdReleaseBundle" + private const val LOCAL_PROPERTIES_FILE = "local.properties" + private const val INCREMENT_VERSION = "incrementVersion" + private const val RELEASE_BUNDLE = "bundleProdRelease" + + private const val VERSION_NAME = "VERSION_NAME" + private const val VERSION_CODE = "VERSION_CODE" + + private const val RELEASE_STORE_PASSWORD = "RELEASE_STORE_PASSWORD" + private const val RELEASE_KEY_PASSWORD = "RELEASE_KEY_PASSWORD" + private const val RELEASE_STORE_FILE = "RELEASE_STORE_FILE" + private const val RELEASE_KEY_ALIAS = "RELEASE_KEY_ALIAS" + + private const val ANDROID_APPLICATION_LIB = "com.android.application" + private const val APPLICATION_ID = "rees46.demo_android" + private const val ANDROID_LIB = "com.android.library" + private const val JVM_TARGET = "20" + private const val TARGET_SDK = 34 + private const val MIN_SDK = 24 + + private const val RELEASE_CONFIG = "releaseConfig" + private const val DEBUG_CONFIG = "debugConfig" + private const val RELEASE_TYPE = "release" + private const val DEBUG_TYPE = "debug" + + private const val STAGE_FLAVOR = "stage" + private const val PROD_FLAVOR = "prod" + private const val DEV_FLAVOR = "dev" + private const val APPLICATION_STAGE_SUFFIX = ".test" + private const val DIMENSION_FLAVORS = "demoShop" + + private const val PROGUARD_ANDROID_TXT = "proguard-android-optimize.txt" + private const val PROGUARD_RULES = "proguard-rules.pro" + } +} \ No newline at end of file From f9557aa260f8562afd2b2c297e2803bae29197c1 Mon Sep 17 00:00:00 2001 From: kirill ivanov Date: Thu, 3 Apr 2025 16:46:18 +0300 Subject: [PATCH 4/7] feat(github): prepare for prod --- .../{build_apk.yaml.bak => build_apk.yaml} | 0 .../{publish.yaml.bak => publish.yaml} | 0 .github/workflows/sync.yaml | 18 ++++++++---------- 3 files changed, 8 insertions(+), 10 deletions(-) rename .github/workflows/{build_apk.yaml.bak => build_apk.yaml} (100%) rename .github/workflows/{publish.yaml.bak => publish.yaml} (100%) diff --git a/.github/workflows/build_apk.yaml.bak b/.github/workflows/build_apk.yaml similarity index 100% rename from .github/workflows/build_apk.yaml.bak rename to .github/workflows/build_apk.yaml diff --git a/.github/workflows/publish.yaml.bak b/.github/workflows/publish.yaml similarity index 100% rename from .github/workflows/publish.yaml.bak rename to .github/workflows/publish.yaml diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index 67ed66a7..4daf7354 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -2,22 +2,20 @@ name: Sync repositories on: pull_request: - # TODO uncomment - # workflow_run: - # workflows: - # - "Publish to Play Store and Bump Version" - # types: - # - completed - # workflow_dispatch: + types: + - closed + branches: + - master + workflow_dispatch: jobs: run: - # TODO uncomment - # uses: rees46/workflow/.github/workflows/reusable-android-synchronization.yaml@master - uses: rees46/workflow/.github/workflows/reusable-android-synchronization.yaml@refactor/reusable-android-synchronization + if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' + uses: rees46/workflow/.github/workflows/reusable-android-synchronization.yaml@master permissions: write-all with: appId: ${{ vars.PERSONACLICK_COURIER_ID }} + repositoryOwner: PersonaClick targetRepository: personaclick/demo-android sourceDirname: rees46 targetDirname: personaClick From f18481cf17c07c07ea8f9940ad7b5de645f7e01e Mon Sep 17 00:00:00 2001 From: kirill ivanov Date: Thu, 3 Apr 2025 16:51:50 +0300 Subject: [PATCH 5/7] refactor(buildConfig): rm unused --- buildConfig/bin/main/AppBuildConfig.kt | 237 ------------------------- 1 file changed, 237 deletions(-) delete mode 100644 buildConfig/bin/main/AppBuildConfig.kt diff --git a/buildConfig/bin/main/AppBuildConfig.kt b/buildConfig/bin/main/AppBuildConfig.kt deleted file mode 100644 index 71e7a8c9..00000000 --- a/buildConfig/bin/main/AppBuildConfig.kt +++ /dev/null @@ -1,237 +0,0 @@ -@file:Suppress("DEPRECATION") - -import com.android.build.gradle.AppExtension -import com.android.build.gradle.LibraryExtension -import java.io.File -import java.io.FileInputStream -import java.io.FileOutputStream -import java.util.Properties -import org.gradle.api.JavaVersion -import org.gradle.api.Plugin -import org.gradle.api.Project -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile - -class AppBuildConfig : Plugin { - - override fun apply(project: Project) { - project.plugins.withId(ANDROID_APPLICATION_LIB) { - configureAppExtension(project.extensions.getByType(AppExtension::class.java), project) - } - - project.plugins.withId(ANDROID_LIB) { - configureLibraryExtension(project.extensions.getByType(LibraryExtension::class.java)) - } - - configureKotlinCompile(project) - } - - private fun configureAppExtension(androidExtension: AppExtension, project: Project) { - val versionPropsFile = File(project.rootProject.projectDir, "version.properties") - val versionProps = Properties() - if (versionPropsFile.exists()) { - versionProps.load(FileInputStream(versionPropsFile)) - } - - val currentVersionCode = versionProps[VERSION_CODE]?.toString()?.toInt() ?: 1 - val currentVersionName = versionProps[VERSION_NAME]?.toString() ?: "1.0.0" - - androidExtension.apply { - compileSdkVersion(TARGET_SDK) - defaultConfig { - applicationId = APPLICATION_ID - minSdk = MIN_SDK - targetSdk = TARGET_SDK - versionCode = currentVersionCode - versionName = currentVersionName - viewBinding { - enable = true - } - } - flavorDimensions(DIMENSION_FLAVORS) - configureProductFlavors() - configureSigningConfigs(project) - configureBuildTypes() - configurePackagingOptions() - configureJavaAndKotlinOptions() - - project.tasks.register(PUBLISH_TO_ITERNAL_TESTING) { - dependsOn(RELEASE_BUNDLE) - finalizedBy(PUBLISH_RELEASE_BUNDLE) - } - - project.tasks.register(INCREMENT_VERSION) { - doLast { - incrementVersion(versionProps, versionPropsFile) - } - } - } - } - - private fun incrementVersion(versionProps: Properties, versionPropsFile: File) { - val currentVersionCode = versionProps[VERSION_CODE]?.toString()?.toInt() ?: 1 - val newVersionCode = currentVersionCode + 1 - - val currentVersionName = versionProps[VERSION_NAME]?.toString() ?: "1.0.0" - val versionNameParts = currentVersionName.split(".").toMutableList() - - if (versionNameParts.size == 3) { - val patchVersion = versionNameParts[2].toIntOrNull() ?: 0 - versionNameParts[2] = (patchVersion + 1).toString() - } - - val newVersionName = versionNameParts.joinToString(".") - - versionProps[VERSION_CODE] = newVersionCode.toString() - versionProps[VERSION_NAME] = newVersionName - versionProps.store(FileOutputStream(versionPropsFile), null) - - println("Version updated to: versionCode=$newVersionCode, versionName=$newVersionName") - } - - private fun AppExtension.configureProductFlavors() { - productFlavors { - create(DEV_FLAVOR) { - dimension = DIMENSION_FLAVORS - } - create(STAGE_FLAVOR) { - dimension = DIMENSION_FLAVORS - applicationIdSuffix = APPLICATION_STAGE_SUFFIX - } - create(PROD_FLAVOR) { - dimension = DIMENSION_FLAVORS - } - } - } - - private fun AppExtension.configureSigningConfigs(project: Project) { - val localProperties = Properties() - val localPropertiesFile = project.rootProject.file(LOCAL_PROPERTIES_FILE) - if (localPropertiesFile.exists()) { - localProperties.load(FileInputStream(localPropertiesFile)) - } - - signingConfigs { - create(RELEASE_CONFIG) { - storeFile = File( - localProperties.getProperty(RELEASE_STORE_FILE) ?: System.getenv("SIGNING_STORE_FILE") - ) - storePassword = localProperties.getProperty(RELEASE_STORE_PASSWORD) ?: System.getenv("SIGNING_STORE_PASSWORD") - keyAlias = localProperties.getProperty(RELEASE_KEY_ALIAS) ?: System.getenv("SIGNING_KEY_ALIAS") - keyPassword = localProperties.getProperty(RELEASE_KEY_PASSWORD) ?: System.getenv("SIGNING_KEY_PASSWORD") - } - create(DEBUG_CONFIG) { - } - } - } - - private fun AppExtension.configureBuildTypes() { - buildTypes { - getByName(RELEASE_TYPE) { - signingConfig = signingConfigs.getByName(RELEASE_CONFIG) - isMinifyEnabled = false - proguardFiles( - getDefaultProguardFile(PROGUARD_ANDROID_TXT), - PROGUARD_RULES - ) - } - getByName(DEBUG_TYPE) { - isDebuggable = true - } - } - } - - private fun AppExtension.configurePackagingOptions() { - packagingOptions { - exclude("META-INF/*.kotlin_module") - exclude("META-INF/AL2.0") - exclude("META-INF/LGPL2.1") - } - } - - private fun configureLibraryExtension(androidExtension: LibraryExtension) { - androidExtension.apply { - compileSdk = TARGET_SDK - configureDefaultConfig() - configureBuildTypes() - configureJavaAndKotlinOptions() - } - } - - private fun LibraryExtension.configureDefaultConfig() { - defaultConfig { - minSdk = MIN_SDK - targetSdk = TARGET_SDK - } - } - - private fun LibraryExtension.configureBuildTypes() { - buildTypes { - getByName(RELEASE_TYPE) { - isMinifyEnabled = false - proguardFiles( - getDefaultProguardFile(PROGUARD_ANDROID_TXT), - PROGUARD_RULES - ) - } - } - } - - private fun configureKotlinCompile(project: Project) { - project.tasks.withType(KotlinCompile::class.java).configureEach { - kotlinOptions { - jvmTarget = JVM_TARGET - } - } - } - - private fun AppExtension.configureJavaAndKotlinOptions() { - compileOptions { - sourceCompatibility = JavaVersion.VERSION_20 - targetCompatibility = JavaVersion.VERSION_20 - } - } - - private fun LibraryExtension.configureJavaAndKotlinOptions() { - compileOptions { - sourceCompatibility = JavaVersion.VERSION_20 - targetCompatibility = JavaVersion.VERSION_20 - } - } - - companion object { - private const val PUBLISH_TO_ITERNAL_TESTING = "publishProdReleaseToPlay" - private const val PUBLISH_RELEASE_BUNDLE = "publishProdReleaseBundle" - private const val LOCAL_PROPERTIES_FILE = "local.properties" - private const val INCREMENT_VERSION = "incrementVersion" - private const val RELEASE_BUNDLE = "bundleProdRelease" - - private const val VERSION_NAME = "VERSION_NAME" - private const val VERSION_CODE = "VERSION_CODE" - - private const val RELEASE_STORE_PASSWORD = "RELEASE_STORE_PASSWORD" - private const val RELEASE_KEY_PASSWORD = "RELEASE_KEY_PASSWORD" - private const val RELEASE_STORE_FILE = "RELEASE_STORE_FILE" - private const val RELEASE_KEY_ALIAS = "RELEASE_KEY_ALIAS" - - private const val ANDROID_APPLICATION_LIB = "com.android.application" - private const val APPLICATION_ID = "rees46.demo_android" - private const val ANDROID_LIB = "com.android.library" - private const val JVM_TARGET = "20" - private const val TARGET_SDK = 34 - private const val MIN_SDK = 24 - - private const val RELEASE_CONFIG = "releaseConfig" - private const val DEBUG_CONFIG = "debugConfig" - private const val RELEASE_TYPE = "release" - private const val DEBUG_TYPE = "debug" - - private const val STAGE_FLAVOR = "stage" - private const val PROD_FLAVOR = "prod" - private const val DEV_FLAVOR = "dev" - private const val APPLICATION_STAGE_SUFFIX = ".test" - private const val DIMENSION_FLAVORS = "demoShop" - - private const val PROGUARD_ANDROID_TXT = "proguard-android-optimize.txt" - private const val PROGUARD_RULES = "proguard-rules.pro" - } -} \ No newline at end of file From 2503eead8816b55109f0a8ed65522d0015b903ef Mon Sep 17 00:00:00 2001 From: kirill ivanov Date: Thu, 3 Apr 2025 19:20:00 +0300 Subject: [PATCH 6/7] refactor(github): namings --- .../workflows/{sync.yaml => persona-click-synchronization.yaml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{sync.yaml => persona-click-synchronization.yaml} (97%) diff --git a/.github/workflows/sync.yaml b/.github/workflows/persona-click-synchronization.yaml similarity index 97% rename from .github/workflows/sync.yaml rename to .github/workflows/persona-click-synchronization.yaml index 4daf7354..72e641d4 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/persona-click-synchronization.yaml @@ -1,4 +1,4 @@ -name: Sync repositories +name: Sync PersonaClick repositories on: pull_request: From 21157b353230eaab9ca17aecf11ac3fea595742a Mon Sep 17 00:00:00 2001 From: kirill ivanov Date: Thu, 3 Apr 2025 19:24:16 +0300 Subject: [PATCH 7/7] refactor(github): namings --- ...ick-synchronization.yaml => repository-synchronization.yaml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{persona-click-synchronization.yaml => repository-synchronization.yaml} (97%) diff --git a/.github/workflows/persona-click-synchronization.yaml b/.github/workflows/repository-synchronization.yaml similarity index 97% rename from .github/workflows/persona-click-synchronization.yaml rename to .github/workflows/repository-synchronization.yaml index 72e641d4..83e0482e 100644 --- a/.github/workflows/persona-click-synchronization.yaml +++ b/.github/workflows/repository-synchronization.yaml @@ -1,4 +1,4 @@ -name: Sync PersonaClick repositories +name: Repository synchronization on: pull_request: