Skip to content

Commit

Permalink
Fix/add android billing (#6443)
Browse files Browse the repository at this point in the history
* fix: add android billing permission

* fix: add billing version
  • Loading branch information
sidmorizon authored Jan 4, 2025
1 parent f5d529b commit b9f548b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/mobile/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ dependencies {

// Add BouncyCastle OpenPGP dependency
implementation("org.bouncycastle:bcpg-jdk18on:1.77")

// add billing sdk, also update AndroidManifest.xml
def billingVersion = 7.0.0
implementation("com.android.billingclient:billing:$billingVersion")
}

apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
<package android:name="org.toshi"/>
</queries>
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:allowBackup="false" android:theme="@style/AppTheme" android:largeHeap="true" android:supportsRtl="true">
<meta-data
android:name="com.google.android.play.billingclient.version"
android:value="7.0.0"/>
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
<meta-data android:name="expo.modules.updates.EXPO_SDK_VERSION" android:value="49.0.0"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
Expand Down

0 comments on commit b9f548b

Please sign in to comment.