From 2fbcf6e6e073cdf44c1e4d39c7427a3bc596c4de Mon Sep 17 00:00:00 2001 From: MH-W90 Date: Wed, 7 Oct 2026 19:04:45 +0330 Subject: [PATCH] fixes --- .vscode/settings.json | 3 + android/app/build.gradle.kts | 73 +++++++++++++++++++++--- android/app/src/main/AndroidManifest.xml | 2 + 3 files changed, 71 insertions(+), 7 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c5f3f6b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index b287c1e..bb0c184 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -1,12 +1,62 @@ +// plugins { +// id("com.android.application") +// id("org.jetbrains.kotlin.android") +// } + +// android { +// // ⚠️ اسمِ پکیج باید همانی باشد که در پیشخانِ بازار ثبت است. com.tadrisino.app را بازار +// // برای حسابِ شرکت «Product is not found» جواب داد (یعنی هست)، ولی سنیور تأیید نکرده +// // که همان اپِ ریاضی است (CLAUDE.mdِ بک‌اند، ۲۰۲۶-۰۹-۳۰). +// namespace = "com.tadrisino.app" +// compileSdk = 34 + +// defaultConfig { +// applicationId = "com.tadrisino.math.app" +// minSdk = 23 +// targetSdk = 34 +// versionCode = 1 +// versionName = "1.0.0" + +// // آدرسِ همان فرانتِ وب. دامنه عوض شود، فقط همین خط. +// buildConfigField("String", "WEB_URL", "\"https://math.tadrisino2.ir/\"") +// // کلیدِ RSAِ عمومیِ اپ از پیشخانِ بازار (بخشِ «پرداخت درون‌برنامه‌ای»). کلیدِ عمومی +// // است و در اپ می‌نشیند؛ رمز نیست. تا پر نشود، اپ خرید را شروع نمی‌کند. +// buildConfigField("String", "BAZAAR_RSA_KEY", "\"\"") +// } + +// buildFeatures { +// buildConfig = true +// } + +// buildTypes { +// release { +// isMinifyEnabled = false +// } +// } + +// compileOptions { +// sourceCompatibility = JavaVersion.VERSION_17 +// targetCompatibility = JavaVersion.VERSION_17 +// } +// kotlinOptions { +// jvmTarget = "17" +// } +// } + +// dependencies { +// implementation("androidx.appcompat:appcompat:1.7.0") +// implementation("androidx.activity:activity-ktx:1.9.2") +// implementation("com.github.cafebazaar.Poolakey:poolakey:2.2.0") +// } + plugins { id("com.android.application") id("org.jetbrains.kotlin.android") } android { - // ⚠️ اسمِ پکیج باید همانی باشد که در پیشخانِ بازار ثبت است. com.tadrisino.app را بازار - // برای حسابِ شرکت «Product is not found» جواب داد (یعنی هست)، ولی سنیور تأیید نکرده - // که همان اپِ ریاضی است (CLAUDE.mdِ بک‌اند، ۲۰۲۶-۰۹-۳۰). + // Package name must match the one registered on Cafe Bazaar. + // Confirm the final applicationId before publishing. namespace = "com.tadrisino.app" compileSdk = 34 @@ -17,10 +67,9 @@ android { versionCode = 1 versionName = "1.0.0" - // آدرسِ همان فرانتِ وب. دامنه عوض شود، فقط همین خط. + // URL of the web frontend. buildConfigField("String", "WEB_URL", "\"https://math.tadrisino2.ir/\"") - // کلیدِ RSAِ عمومیِ اپ از پیشخانِ بازار (بخشِ «پرداخت درون‌برنامه‌ای»). کلیدِ عمومی - // است و در اپ می‌نشیند؛ رمز نیست. تا پر نشود، اپ خرید را شروع نمی‌کند. + // Public RSA key from the Cafe Bazaar panel. Purchases won't start until it is filled in. buildConfigField("String", "BAZAAR_RSA_KEY", "\"\"") } @@ -28,9 +77,19 @@ android { buildConfig = true } + signingConfigs { + create("release") { + storeFile = file("my-release-key.keystore") + storePassword = providers.gradleProperty("MYAPP_STORE_PASSWORD").orNull + keyAlias = "my-key-alias" + keyPassword = providers.gradleProperty("MYAPP_KEY_PASSWORD").orNull + } + } + buildTypes { release { isMinifyEnabled = false + signingConfig = signingConfigs.getByName("release") } } @@ -47,4 +106,4 @@ dependencies { implementation("androidx.appcompat:appcompat:1.7.0") implementation("androidx.activity:activity-ktx:1.9.2") implementation("com.github.cafebazaar.Poolakey:poolakey:2.2.0") -} +} \ No newline at end of file diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 29be4f0..b524dd4 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -13,6 +13,8 @@