Skip to content

Commit

Permalink
-billing lib updated to 6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hannanshahidfunsoltech committed Oct 31, 2023
1 parent c271cca commit d2866ae
Show file tree
Hide file tree
Showing 11 changed files with 252 additions and 141 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 4 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Add Funsol Billing Helper dependencies in App level build.gradle.
```kotlin

dependencies {
implementation 'com.github.Funsol-Projects:Funsol-Billing-Helper:v1.0.3'
implementation 'com.github.Funsol-Projects:Funsol-Billing-Helper:v1.0.4'
}

```
Expand Down Expand Up @@ -104,24 +104,11 @@ Call this in first stable activity or in App class
FunSolBillingHelper(this)
.setSubKeys(mutableListOf("Subs Key", "Subs Key 2"))
.setInAppKeys(mutableListOf("In-App Key"))
.enableLogging()


```

##### For both Debug/Release

```kotlin

FunSolBillingHelper(this)
.setSubKeys(mutableListOf("Subs Key", "Subs Key 2"))
.setInAppKeys(mutableListOf("In-App Key"))
.enableLogging(isEnableWhileRelease = true)
.enableLogging(isEnableLog = true)


```


### Buy In-App Product

Subscribe to a Subscription
Expand Down Expand Up @@ -413,8 +400,8 @@ This Method used for Releasing the client object and save from memory leaks

## License

#### MIT License
#### Copyright (c) 2023
#### MIT License
#### Copyright (c) 2023 Funsol Technologies Pvt Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
Expand Down
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ plugins {

android {
namespace 'com.billing.funsolbillinghelper'
compileSdk 33
compileSdk 34

defaultConfig {
applicationId "com.billing.funsolbillinghelper"
minSdk 21
targetSdk 33
targetSdk 34
versionCode 1
versionName "1.0"

Expand All @@ -34,14 +34,14 @@ android {

dependencies {

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.8.0'
implementation 'com.google.android.material:material:1.10.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation project(path: ':funsol-billing-utils')
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
implementation 'com.android.billingclient:billing:6.0.0'
implementation 'com.android.billingclient:billing:6.0.1'

androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
FunSolBillingHelper(this).setSubKeys(mutableListOf("basic")).enableLogging(isEnableWhileRelease = true).setBillingClientListener(object : BillingClientListener {
override fun onClientReady() {
Log.i("billing", "onClientReady: ")
}
FunSolBillingHelper(this).setInAppKeys(mutableListOf("android.test.purchase")).setSubKeys(mutableListOf("basic")).enableLogging(true)
.setBillingClientListener(object : BillingClientListener {
override fun onClientReady() {
Log.i("billing", "onClientReady: ")
}

override fun onClientInitError() {
Log.i("billing", "onClientInitError: ")
}
override fun onClientInitError() {
Log.i("billing", "onClientInitError: ")
}

})
})

}
}
10 changes: 5 additions & 5 deletions funsol-billing-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ plugins {
}

android {
compileSdkVersion 33
compileSdkVersion 34
buildToolsVersion "33.0.0"

defaultConfig {
minSdkVersion 21
targetSdkVersion 33
targetSdkVersion 34

multiDexEnabled true

Expand Down Expand Up @@ -39,7 +39,7 @@ android {

dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.android.billingclient:billing:6.0.0'
implementation 'com.android.billingclient:billing:6.0.1'
}

afterEvaluate {
Expand All @@ -49,13 +49,13 @@ afterEvaluate {
from components.release
groupId = 'com.github.Funsol-Projects'
artifactId = 'Funsol-Billing-Helper'
version = 'v1.0.3'
version = 'v1.0.4'
}
debug(MavenPublication) {
from components.debug
groupId = 'com.github.Funsol-Projects'
artifactId = 'Funsol-Billing-Helper'
version = 'v1.0.3'
version = 'v1.0.4'
}
}
}
Expand Down
Loading

0 comments on commit d2866ae

Please sign in to comment.