Skip to content

Commit 981f46b

Browse files
committed
Updated READMER.md
1 parent 86d74b7 commit 981f46b

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

README.md

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Cafebazaar In-app purchase Unity plugin
66

77

88
## BUILD INSTRUCTION
9-
To build `BazaarIAB.jar` from the java source code:
9+
To build `BazaarIAB.aar` from the java source code:
1010
1. Open a command prompt
1111
2. Navigate to JavaPlugin folder
1212
3. Type `gradlew createJar`
@@ -24,26 +24,8 @@ There is `IABEventManager` class that you can subscribe to all plugin events.
2424

2525
After you find out that the billing is supported, you can call `queryInventory` by providing all of your available skus. When the `queryInventorySucceededEvent` fires it will contain a list of all the current purchases, subscriptions and a list of all your project sku details. You can use this information to setup your store. The list is also handy when you want to consume a purchase. Any `BazaarPurchases` returned are available for consumption.
2626

27-
Add the plugin activity in the Application section of the `AndroidManifest.xml`:
28-
29-
<meta-data android:name="billing.service" android:value="bazaar.BazaarIabService" />
30-
<activity android:name="com.bazaar.BazaarIABProxyActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
31-
32-
Also add the required permissions to your manifest:
33-
34-
<uses-permission android:name="android.permission.INTERNET" />
35-
<uses-permission android:name="com.farsitel.bazaar.permission.PAY_THROUGH_BAZAAR" />
36-
37-
### Targeting API Level 30 or higher
38-
If you are targeting Android API Level 30 (Android 11) or higher, you need to add the following to the manifest:
39-
40-
<queries>
41-
<package android:name="com.farsitel.bazaar" />
42-
43-
<intent>
44-
<action android:name="ir.cafebazaar.pardakht.InAppBillingService.BIND" />
45-
</intent>
46-
</queries>
27+
## Modifications to AndroidManifest
28+
With version 1.1.0, the library uses AAR file instead of Jar file. No need for manual AndroidManigest modifications anymore 🍻
4729

4830
# Methods
4931
Methods are inside `BazaarIAB` class.
@@ -116,6 +98,8 @@ public static event Action<BazaarPurchase> consumePurchaseSucceededEvent;
11698
// Fired when a call to consume a product fails
11799
public static event Action<string> consumePurchaseFailedEvent;
118100

101+
// Fired when service connection to bazaar disconnected, should dispose current connection ( by calling BazaarIAB.unbindService() ) and create a new one later ( calling BazaarIAB.init again )
102+
public static event Action serviceDisconnectedEvent;
119103
```
120104

121105
# Thanks

0 commit comments

Comments
 (0)