@@ -41,28 +41,50 @@ This project provides a native RevenueCat plugin for Godot, built as a fully int
4141| Component | Version |
4242| -----------| ---------|
4343| Godot | 4.5‑stable |
44- | RevenueCat iOS SDK | 5.48 .0 |
45- | RevenueCat Android SDK | 9.14 .0 |
46- | Kotlin | 2.1 .0 |
44+ | RevenueCat iOS SDK | 5.54 .0 |
45+ | RevenueCat Android SDK | 9.19 .0 |
46+ | Kotlin | 2.3 .0 |
4747| Min iOS | 15.0 |
4848| Min Android SDK | 24 (Android 7.0) |
4949
5050## Quick Start
5151
5252### 1. Installation
5353
54- Copy the plugin folder into your Godot project:
55-
56- ```
57- your_project/
58- └── addons/
59- └── godotx_revenue_cat/
60- ```
61-
62- Enable it in the editor:
63-
64- - Go to ** Project → Project Settings → Plugins**
65- - Enable ** Godotx RevenueCat**
54+ #### Option A: Godot Asset Library (Recommended)
55+
56+ 1 . Open ** AssetLib** in Godot Editor
57+ 2 . Search for "Godotx RevenueCat"
58+ 3 . Click ** Download** and ** Install**
59+ 4 . Or download directly from: https://godotengine.org/asset-library/asset/4493
60+
61+ #### Option B: Manual Installation
62+
63+ 1 . ** Download the ZIP** from [ Releases] ( https://github.com/godot-x/revenuecat/releases )
64+
65+ 2 . ** Extract the ZIP** - it contains 3 folders:
66+ ```
67+ godotx_revenuecat/
68+ ├── addons/
69+ ├── ios/
70+ └── android/
71+ ```
72+
73+ 3 . ** Copy all 3 folders** to your Godot project root:
74+ ```
75+ your_project/
76+ ├── addons/
77+ │ └── godotx_revenue_cat/
78+ ├── ios/
79+ │ └── plugins/
80+ │ └── revenuecat/
81+ └── android/
82+ └── revenuecat/
83+ ```
84+
85+ 4 . ** Enable the plugin** in Godot:
86+ - Open ** Project → Project Settings → Plugins**
87+ - Enable "Godotx RevenueCat"
6688
6789### 2. Configure Export Preset
6890
@@ -147,6 +169,41 @@ revenuecat.login("user_123")
147169revenuecat.logout()
148170```
149171
172+ ## Advanced Configuration
173+
174+ ### Android R8/ProGuard Minification
175+
176+ By default, R8 minification is ** disabled** in release builds. If you want to enable it for smaller APK/AAB sizes, follow these steps:
177+
178+ 1 . ** Edit ` android/build/build.gradle ` ** and enable minification in the release build type:
179+
180+ ``` gradle
181+ android {
182+ buildTypes {
183+ release {
184+ minifyEnabled true
185+ shrinkResources true
186+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
187+ }
188+ }
189+ }
190+ ```
191+
192+ 2 . ** Create ` android/build/proguard-rules.pro ` ** with the following content:
193+
194+ ``` proguard
195+ ####################################
196+ # Godot JNI
197+ ####################################
198+ -keep class org.godotengine.godot.** { *; }
199+ -dontwarn org.godotengine.godot.**
200+ ```
201+
202+ ** Important Notes:**
203+ - RevenueCat ProGuard rules are already included in the module (via ` consumerProguardFiles ` )
204+ - Only add custom rules if you encounter issues with other libraries
205+ - Test thoroughly after enabling minification to ensure everything works correctly
206+
150207## Building (For Developers)
151208
152209``` bash
0 commit comments