feat: add myket iap

This commit is contained in:
2026-06-14 18:31:15 +03:30
parent f266f4d142
commit c76f8aa08f
9 changed files with 192 additions and 4 deletions
+16
View File
@@ -19,6 +19,18 @@ android {
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
// ---- Myket in-app billing ----
val marketApplicationId = "ir.mservices.market"
val marketBindAddress = "ir.mservices.market.InAppBillingService.BIND"
manifestPlaceholders["marketApplicationId"] = marketApplicationId
manifestPlaceholders["marketBindAddress"] = marketBindAddress
manifestPlaceholders["marketPermission"] = "$marketApplicationId.BILLING"
buildConfigField(
"String",
"IAB_PUBLIC_KEY",
"\"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCDSaqJLDPxQZBZD/LGRsZOJ8m1hLVFedg/tnqebQusikVTNYSEjmP86i1TtXu/2b4E8hpkrqyNlNVvEg1lrHCpnxCh0tOubYiG6X/GEQtgOtIRuBzO3HM/r9w1HQm4gZOJc6DJO46Sxp3YbryJujp+pG8p7bU6zHp4zcqydCJ14QIDAQAB\""
)
}
buildTypes {
@@ -39,6 +51,7 @@ android {
}
buildFeatures {
compose = true
buildConfig = true
}
}
@@ -80,6 +93,9 @@ dependencies {
// SMS User Consent API (OTP auto-fill)
implementation(libs.play.services.auth.api.phone)
// Myket in-app billing
implementation("com.github.myketstore:myket-billing-client:1.6")
// Koin for DI
implementation(libs.koin.android)
implementation(libs.koin.androidx.compose.v410)