Loading data/build.gradle +2 −1 Original line number Diff line number Diff line Loading @@ -81,7 +81,6 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:$coroutines_version" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-reactive:$coroutines_version" implementation 'com.android.installreferrer:installreferrer:1.1' implementation 'com.callcontrol:datashare:1.2.0' implementation "com.f2prateek.rx.preferences2:rx-preferences:$rx_preferences_version" implementation "com.jakewharton.timber:timber:$timber_version" Loading @@ -92,6 +91,8 @@ dependencies { implementation project(":android-smsmms") implementation project(':common') implementation project(':domain') withAnalyticsImplementation 'com.android.installreferrer:installreferrer:1.1' withAnalyticsImplementation "com.amplitude:android-sdk:2.16.0" } Loading data/src/noAnalytics/java/com/moez/QKSMS/manager/ReferralManagerImpl.kt 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 Moez Bhatti <moez.bhatti@gmail.com> * * This file is part of QKSMS. * * QKSMS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QKSMS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with QKSMS. If not, see <http://www.gnu.org/licenses/>. */ package com.moez.QKSMS.manager import android.content.Context import com.moez.QKSMS.util.Preferences import kotlinx.coroutines.suspendCancellableCoroutine import javax.inject.Inject import kotlin.coroutines.resume class ReferralManagerImpl @Inject constructor() : ReferralManager { override suspend fun trackReferrer() { } } data/src/main/java/com/moez/QKSMS/manager/ReferralManagerImpl.kt→data/src/withAnalytics/java/com/moez/QKSMS/manager/ReferralManagerImpl.kt +19 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 Moez Bhatti <moez.bhatti@gmail.com> * * This file is part of QKSMS. * * QKSMS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QKSMS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with QKSMS. If not, see <http://www.gnu.org/licenses/>. */ package com.moez.QKSMS.manager import android.content.Context Loading domain/src/main/java/com/moez/QKSMS/manager/BillingManager.kt 0 → 100644 +43 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 Moez Bhatti <moez.bhatti@gmail.com> * * This file is part of QKSMS. * * QKSMS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QKSMS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with QKSMS. If not, see <http://www.gnu.org/licenses/>. */ package com.moez.QKSMS.manager import android.app.Activity import io.reactivex.Observable interface BillingManager { companion object { const val SKU_PLUS = "remove_ads" const val SKU_PLUS_DONATE = "qksms_plus_donate" } data class Product( val sku: String, val price: String, val priceCurrencyCode: String ) val products: Observable<List<Product>> val upgradeStatus: Observable<Boolean> fun initiatePurchaseFlow(activity: Activity, sku: String) } presentation/build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -173,7 +173,6 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:$coroutines_version" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-reactive:$coroutines_version" implementation "com.android.billingclient:billing:1.0" implementation "com.github.chrisbanes:PhotoView:2.0.0" implementation "com.f2prateek.rx.preferences2:rx-preferences:$rx_preferences_version" implementation "com.google.android:flexbox:0.3.1" Loading @@ -187,6 +186,7 @@ dependencies { implementation project(':domain') withAnalyticsImplementation 'com.google.firebase:firebase-crashlytics:17.3.0' withAnalyticsImplementation "com.android.billingclient:billing:1.0" noAnalyticsDebug project(path: ':data', configuration: 'noAnalyticsDebug') noAnalyticsRelease project(path: ':data', configuration: 'noAnalyticsRelease') Loading Loading
data/build.gradle +2 −1 Original line number Diff line number Diff line Loading @@ -81,7 +81,6 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:$coroutines_version" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-reactive:$coroutines_version" implementation 'com.android.installreferrer:installreferrer:1.1' implementation 'com.callcontrol:datashare:1.2.0' implementation "com.f2prateek.rx.preferences2:rx-preferences:$rx_preferences_version" implementation "com.jakewharton.timber:timber:$timber_version" Loading @@ -92,6 +91,8 @@ dependencies { implementation project(":android-smsmms") implementation project(':common') implementation project(':domain') withAnalyticsImplementation 'com.android.installreferrer:installreferrer:1.1' withAnalyticsImplementation "com.amplitude:android-sdk:2.16.0" } Loading
data/src/noAnalytics/java/com/moez/QKSMS/manager/ReferralManagerImpl.kt 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 Moez Bhatti <moez.bhatti@gmail.com> * * This file is part of QKSMS. * * QKSMS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QKSMS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with QKSMS. If not, see <http://www.gnu.org/licenses/>. */ package com.moez.QKSMS.manager import android.content.Context import com.moez.QKSMS.util.Preferences import kotlinx.coroutines.suspendCancellableCoroutine import javax.inject.Inject import kotlin.coroutines.resume class ReferralManagerImpl @Inject constructor() : ReferralManager { override suspend fun trackReferrer() { } }
data/src/main/java/com/moez/QKSMS/manager/ReferralManagerImpl.kt→data/src/withAnalytics/java/com/moez/QKSMS/manager/ReferralManagerImpl.kt +19 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 Moez Bhatti <moez.bhatti@gmail.com> * * This file is part of QKSMS. * * QKSMS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QKSMS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with QKSMS. If not, see <http://www.gnu.org/licenses/>. */ package com.moez.QKSMS.manager import android.content.Context Loading
domain/src/main/java/com/moez/QKSMS/manager/BillingManager.kt 0 → 100644 +43 −0 Original line number Diff line number Diff line /* * Copyright (C) 2020 Moez Bhatti <moez.bhatti@gmail.com> * * This file is part of QKSMS. * * QKSMS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * QKSMS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with QKSMS. If not, see <http://www.gnu.org/licenses/>. */ package com.moez.QKSMS.manager import android.app.Activity import io.reactivex.Observable interface BillingManager { companion object { const val SKU_PLUS = "remove_ads" const val SKU_PLUS_DONATE = "qksms_plus_donate" } data class Product( val sku: String, val price: String, val priceCurrencyCode: String ) val products: Observable<List<Product>> val upgradeStatus: Observable<Boolean> fun initiatePurchaseFlow(activity: Activity, sku: String) }
presentation/build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -173,7 +173,6 @@ dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:$coroutines_version" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-reactive:$coroutines_version" implementation "com.android.billingclient:billing:1.0" implementation "com.github.chrisbanes:PhotoView:2.0.0" implementation "com.f2prateek.rx.preferences2:rx-preferences:$rx_preferences_version" implementation "com.google.android:flexbox:0.3.1" Loading @@ -187,6 +186,7 @@ dependencies { implementation project(':domain') withAnalyticsImplementation 'com.google.firebase:firebase-crashlytics:17.3.0' withAnalyticsImplementation "com.android.billingclient:billing:1.0" noAnalyticsDebug project(path: ':data', configuration: 'noAnalyticsDebug') noAnalyticsRelease project(path: ':data', configuration: 'noAnalyticsRelease') Loading