gem-cordova-android-gradle-injector 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "gem-cordova-android-gradle-injector",
3
+ "version": "2.0.0",
4
+ "description": "Cordova plugin to inject any Android Gradle dependencies for GDevelop or Cordova apps, you need the injector script for admob to work",
5
+ "cordova": {
6
+ "id": "gem-cordova-android-gradle-injector",
7
+ "platforms": [
8
+ "android"
9
+ ]
10
+ },
11
+ "keywords": [
12
+ "cordova",
13
+ "gradle",
14
+ "android",
15
+ "gdevelop",
16
+ "plugin"
17
+ ],
18
+ "author": "Gabriel Momoh",
19
+ "license": "MIT"
20
+ }
package/plugin.xml ADDED
@@ -0,0 +1,65 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <plugin id="cordova-android-gradle-injector" version="1.0.0"
3
+ xmlns="http://apache.org/cordova/ns/plugins"
4
+ xmlns:android="http://schemas.android.com/apk/res/android">
5
+
6
+
7
+ <platform name="android">
8
+
9
+ <framework src="com.google.android.gms:play-services-ads:+" spec="implementation" />
10
+
11
+
12
+ <framework src="com.google.ads.mediation:facebook:+" spec="implementation" />
13
+
14
+
15
+ <framework src="com.google.ads.mediation:ironsource:+" spec="implementation" />
16
+
17
+
18
+ <framework src="com.unity3d.ads:unity-ads:+" spec="implementation" />
19
+ <framework src="com.google.ads.mediation:unity:+" spec="implementation" />
20
+
21
+ <config-file target="AndroidManifest.xml" parent="/*">
22
+ <uses-permission android:name="android.permission.INTERNET" />
23
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
24
+ </config-file>
25
+
26
+ <config-file target="AndroidManifest.xml" parent="application">
27
+ <activity android:name="com.unity3d.ads.adunit.AdUnitActivity"
28
+ android:configChanges="keyboardHidden|orientation|screenSize"
29
+ android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
30
+ </config-file>
31
+
32
+ <resource-file src="proguard-rules.pro" target="proguard-rules.pro" />
33
+
34
+ <framework src="com.applovin:applovin-sdk:+" spec="implementation" />
35
+ <framework src="com.applovin.mediation:google-adapter:+" spec="implementation" />
36
+ <framework src="com.applovin.mediation:ironsource-adapter:+" spec="implementation" />
37
+ <framework src="com.applovin.mediation:facebook-adapter:+" spec="implementation" />
38
+ <framework src="com.applovin.mediation:unityads-adapter:+" spec="implementation" />
39
+ </platform>
40
+ <platform name="ios">
41
+ <config-file target="*-Info.plist" parent="NSAppTransportSecurity">
42
+ <dict>
43
+ <key>NSAllowsArbitraryLoads</key>
44
+ <true/>
45
+ </dict>
46
+ </config-file>
47
+
48
+ <config-file target="*-Info.plist" parent="UIApplicationExitsOnSuspend">
49
+ <false/>
50
+ </config-file>
51
+
52
+ <!-- Required for AppLovin and Mediation SDKs -->
53
+ <framework src="AppLovinSDK" type="podspec" />
54
+ <framework src="Google-Mobile-Ads-SDK" type="podspec" />
55
+ <framework src="FBAudienceNetwork" type="podspec" />
56
+ <framework src="UnityAds" type="podspec" />
57
+ <framework src="IronSourceSDK" type="podspec" />
58
+
59
+ <!-- AppLovin Mediation Adapters -->
60
+ <framework src="AppLovinMediationGoogleAdapter" type="podspec" />
61
+ <framework src="AppLovinMediationFacebookAdapter" type="podspec" />
62
+ <framework src="AppLovinMediationUnityAdsAdapter" type="podspec" />
63
+ <framework src="AppLovinMediationIronSourceAdapter" type="podspec" />
64
+ </platform>
65
+ </plugin>
@@ -0,0 +1,19 @@
1
+ # --- AppLovin ---
2
+ -keep class com.applovin.** { *; }
3
+ -dontwarn com.applovin.**
4
+
5
+ # --- Meta Audience Network (Facebook) ---
6
+ -keep class com.facebook.** { *; }
7
+ -dontwarn com.facebook.**
8
+
9
+ # --- Unity Ads ---
10
+ -keep class com.unity3d.ads.** { *; }
11
+ -dontwarn com.unity3d.ads.**
12
+
13
+ # --- IronSource ---
14
+ -keep class com.ironsource.** { *; }
15
+ -dontwarn com.ironsource.**
16
+
17
+ # Optional: Google Play Services (AdMob mediation layer)
18
+ -keep class com.google.android.gms.ads.** { *; }
19
+ -dontwarn com.google.android.gms.ads.**