Skip to content

Commit af6a5d9

Browse files
CherdenkoCherdJulian Müller
authored
bumped to billing library v7 because of deadline (#549)
* bumped to billing library v7 because of deadlines and min api lvl 21 to comply with v7 prequisites * replaced setOldSkuPurchaseToken with setOldPurchaseToken --------- Co-authored-by: Cherd <[email protected]> Co-authored-by: Julian Müller <[email protected]>
1 parent 2748997 commit af6a5d9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

library/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
compileSdk = 33
1010
buildToolsVersion = '30.0.3'
1111

12-
minSdkVersion 19
12+
minSdkVersion 21
1313
targetSdkVersion 33
1414
consumerProguardFiles 'progress-proguard.txt'
1515
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -33,7 +33,7 @@ dependencies {
3333
androidTestImplementation 'androidx.test:rules:1.4.0'
3434
androidTestImplementation 'androidx.test:runner:1.4.0'
3535
implementation 'androidx.annotation:annotation:1.3.0'
36-
implementation 'com.android.billingclient:billing:6.1.0'
36+
implementation 'com.android.billingclient:billing:7.0.0'
3737
}
3838

3939
task androidJavadocs(type: Javadoc) {

library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,8 @@ public void run()
694694
billingFlowParamsBuilder.setSubscriptionUpdateParams(
695695
BillingFlowParams.SubscriptionUpdateParams
696696
.newBuilder()
697-
.setOldSkuPurchaseToken(oldToken)
697+
698+
.setOldPurchaseToken(oldToken)
698699
.build());
699700
}
700701
}

sample/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ android {
1414
defaultConfig {
1515
versionCode 5
1616
versionName '5.0'
17-
minSdkVersion 19
17+
minSdkVersion 21
1818
targetSdkVersion 33
1919
compileSdk = 33
2020
buildToolsVersion = '30.0.3'

0 commit comments

Comments
 (0)