Skip to content

Commit 8d5be5d

Browse files
authored
Merge pull request #709 from qonversion/tech/deprecateSyncHistoricalData
2 parents f8e8a84 + d5fa382 commit 8d5be5d

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎config/detekt/baseline.xml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@
9595
<ID>MaxLineLength:QRemoteConfigManager.kt$QRemoteConfigManager.&lt;no name provided&gt;$val remoteConfigs = baseRemoteConfigList.remoteConfigs.filter { contextKeys.contains(it.source.contextKey) }.toMutableList()</ID>
9696
<ID>MaxLineLength:QUserPropertiesManagerTest.kt$QUserPropertiesManagerTest$fun</ID>
9797
<ID>MaxLineLength:Qonversion.kt$Qonversion$*</ID>
98+
<ID>MaxLineLength:Qonversion.kt$Qonversion$@Deprecated("Due to the Google Play Billing Library 8 limitations, this method doesn't restore historical purchases anymore.")</ID>
9899
<ID>MaxLineLength:QonversionConfig.kt$QonversionConfig.Builder$*</ID>
99100
<ID>MaxLineLength:QonversionConfig.kt$QonversionConfig.Builder$val primaryConfig = PrimaryConfig(projectKey, launchMode, environment, proxyUrl, isKidsMode, sendFbAttribution)</ID>
100101
<ID>MaxLineLength:QonversionError.kt$QonversionErrorCode$*</ID>
101102
<ID>MaxLineLength:QonversionError.kt$QonversionErrorCode$RemoteConfigurationNotAvailable : QonversionErrorCode</ID>
103+
<ID>MaxLineLength:QonversionInternal.kt$QonversionInternal$@Deprecated("Due to the Google Play Billing Library 8 limitations, this method doesn't restore historical purchases anymore.")</ID>
102104
<ID>MaxLineLength:QonversionRepositoryIntegrationTest.kt$QonversionRepositoryIntegrationTest$"""HTTP status code=400, data={"message":"Invalid access token received","code":10003,"status":400,"extra":[]}. """</ID>
103105
<ID>MaxLineLength:QonversionRepositoryIntegrationTest.kt$QonversionRepositoryIntegrationTest$"efnkoceomiocidgigbalneag.AO-J1Ow8JyXX8gs8W9blILbU9Nqy3Mr-RMTLgFG2DLOhO1urkWpr80PUSE6eA0IuEzl_k4Guecep5JZJwcnSYOWzTZhqwusafayRCbv4kRMUR-rR9Ot11nQ"</ID>
104106
<ID>MaxLineLength:QonversionRepositoryIntegrationTest.kt$QonversionRepositoryIntegrationTest$"lgeigljfpmeoddkcebkcepjc.AO-J1Oy305qZj99jXTPEVBN8UZGoYAtjDLj4uTjRQvUFaG0vie-nr6VBlN0qnNDMU8eJR-sI7o3CwQyMOEHKl8eJsoQ86KSFzxKBR07PSpHLI_o7agXhNKY"</ID>
@@ -115,6 +117,7 @@
115117
<ID>MaxLineLength:util.kt$Util.Companion$"\"permissions\":[{\"id\":\"standart\",\"associated_product\":\"in_app\",\"renew_state\":-1,\"started_timestamp\":1612880300,\"source\":\"playstore\",\"active\":1,\"renews_count\":0,\"grant_type\":\"Purchase\",\"store_transactions\":[]},"</ID>
116118
<ID>MaxLineLength:util.kt$Util.Companion$"{\"id\":\"Test Permission\",\"associated_product\":\"in_app\",\"renew_state\":-1,\"started_timestamp\":1612880300,\"source\":\"appstore\",\"active\":1,\"renews_count\":0,\"grant_type\":\"Purchase\",\"store_transactions\":[]}],"</ID>
117119
<ID>MaxLineLength:utils.kt$val msg = "error code: ${error.code}, description: ${error.description}, additionalMessage: ${error.additionalMessage}"</ID>
120+
<ID>MaximumLineLength:com.qonversion.android.sdk.Qonversion.kt:79</ID>
118121
<ID>MaximumLineLength:com.qonversion.android.sdk.QonversionConfig.kt:163</ID>
119122
<ID>MaximumLineLength:com.qonversion.android.sdk.dto.QonversionError.kt:46</ID>
120123
<ID>MaximumLineLength:com.qonversion.android.sdk.dto.products.QProductStoreDetails.kt:130</ID>
@@ -125,6 +128,7 @@
125128
<ID>MaximumLineLength:com.qonversion.android.sdk.internal.QProductCenterManagerTest.kt:152</ID>
126129
<ID>MaximumLineLength:com.qonversion.android.sdk.internal.QRemoteConfigManager.kt:225</ID>
127130
<ID>MaximumLineLength:com.qonversion.android.sdk.internal.QUserPropertiesManagerTest.kt:178</ID>
131+
<ID>MaximumLineLength:com.qonversion.android.sdk.internal.QonversionInternal.kt:131</ID>
128132
<ID>MaximumLineLength:com.qonversion.android.sdk.internal.QonversionRepositoryIntegrationTest.kt:289</ID>
129133
<ID>MaximumLineLength:com.qonversion.android.sdk.internal.QonversionRepositoryIntegrationTest.kt:358</ID>
130134
<ID>MaximumLineLength:com.qonversion.android.sdk.internal.QonversionRepositoryIntegrationTest.kt:724</ID>

‎sample/src/main/java/io/qonversion/sample/App.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ public void onCreate() {
5151
Qonversion.initialize(qonversionConfigBuilder.build());
5252
NoCodes.initialize(noCodesConfigBuilder.build());
5353

54-
Qonversion.getSharedInstance().syncHistoricalData();
55-
5654
AppsFlyerConversionListener conversionListener = new AppsFlyerConversionListener() {
5755
@Override
5856
public void onConversionDataSuccess(final Map<String, Object> conversionData) {

‎sdk/src/main/java/com/qonversion/android/sdk/Qonversion.kt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ interface Qonversion {
7676
* You don't need to care about single call of this function during the application lifetime.
7777
* Qonversion will take care about it.
7878
*/
79+
@Deprecated("Due to the Google Play Billing Library 8 limitations, this method doesn't restore historical purchases anymore.")
7980
fun syncHistoricalData()
8081

8182
/**

‎sdk/src/main/java/com/qonversion/android/sdk/internal/QonversionInternal.kt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ internal class QonversionInternal(
128128
attributionManager.onAppForeground()
129129
}
130130

131+
@Deprecated("Due to the Google Play Billing Library 8 limitations, this method doesn't restore historical purchases anymore.")
131132
override fun syncHistoricalData() {
132133
val isHistoricalDataSynced: Boolean =
133134
sharedPreferencesCache.getBool(Constants.IS_HISTORICAL_DATA_SYNCED)

0 commit comments

Comments
 (0)