Skip to content

Commit

Permalink
Merge pull request #2 from Qeepsake/feature/google-play-billing-v7
Browse files Browse the repository at this point in the history
Upgraded to Google Play Billing Library 7
  • Loading branch information
lukebrandonfarrell authored Aug 14, 2024
2 parents 93ccc10 + 965bd2e commit dd61754
Show file tree
Hide file tree
Showing 4 changed files with 201 additions and 259 deletions.
18 changes: 9 additions & 9 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.android.Version

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'
Expand All @@ -22,7 +24,7 @@ buildscript {
if (ext.has("kotlinVersion")) {
ext.kotlinVersion()
} else {
ext.safeExtGet("kotlinVersion", "1.8.10")
ext.safeExtGet("kotlinVersion", "1.9.20")
}
}

Expand All @@ -43,18 +45,16 @@ afterEvaluate {
}
}
repositories {
maven {
url = mavenLocal().url
}
mavenLocal()
}
}
}

android {
// Remove this if and it's contents, when support for SDK49 is dropped
if (!safeExtGet("expoProvidesDefaultConfig", false)) {
compileSdkVersion safeExtGet("compileSdkVersion", 33)
compileSdk safeExtGet("compileSdkVersion", 33)

defaultConfig {
minSdkVersion safeExtGet("minSdkVersion", 23)
targetSdkVersion safeExtGet("targetSdkVersion", 33)
Expand All @@ -65,7 +65,7 @@ android {
}
}

def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
def agpVersion = Version.ANDROID_GRADLE_PLUGIN_VERSION
if (agpVersion.tokenize('.')[0].toInteger() < 8) {
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
Expand Down Expand Up @@ -97,9 +97,9 @@ allprojects {
}

dependencies {
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.annotation:annotation:1.8.2'
implementation project(':expo-modules-core')
api 'com.android.billingclient:billing:5.0.0'
api 'com.android.billingclient:billing:7.0.0'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
}
Loading

0 comments on commit dd61754

Please sign in to comment.