react-native-applovin-max 8.0.1 → 8.0.3
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/android/build.gradle +2 -2
- package/android/src/main/java/com/applovin/reactnative/AppLovinMAXModule.java +72 -5
- package/ios/AppLovinMAX.m +39 -14
- package/lib/commonjs/AppLovinMAX.js +1 -1
- package/lib/module/AppLovinMAX.js +1 -1
- package/lib/typescript/src/types/AppLovinMAX.d.ts +0 -8
- package/lib/typescript/src/types/AppLovinMAX.d.ts.map +1 -1
- package/package.json +1 -1
- package/react-native-applovin-max.podspec +1 -1
- package/src/AppLovinMAX.ts +1 -1
- package/src/types/AppLovinMAX.ts +0 -9
- package/android/src/main/AndroidManifestNew.xml +0 -2
package/android/build.gradle
CHANGED
|
@@ -53,8 +53,8 @@ android {
|
|
|
53
53
|
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
|
54
54
|
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
55
55
|
|
|
56
|
-
buildConfigField("int", "VERSION_CODE", "
|
|
57
|
-
buildConfigField("String", "VERSION_NAME", "\"8.0.
|
|
56
|
+
buildConfigField("int", "VERSION_CODE", "8000300")
|
|
57
|
+
buildConfigField("String", "VERSION_NAME", "\"8.0.3\"")
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
buildTypes {
|
|
@@ -76,8 +76,9 @@ public class AppLovinMAXModule
|
|
|
76
76
|
implements LifecycleEventListener,
|
|
77
77
|
MaxAdListener, MaxAdViewAdListener, MaxRewardedAdListener, MaxAdRevenueListener
|
|
78
78
|
{
|
|
79
|
-
private static final String SDK_TAG
|
|
80
|
-
private static final String TAG
|
|
79
|
+
private static final String SDK_TAG = "AppLovinSdk";
|
|
80
|
+
private static final String TAG = "AppLovinMAXModule";
|
|
81
|
+
private static final String PLUGIN_VERSION = "8.0.3";
|
|
81
82
|
|
|
82
83
|
private static final String USER_GEOGRAPHY_GDPR = "G";
|
|
83
84
|
private static final String USER_GEOGRAPHY_OTHER = "O";
|
|
@@ -95,6 +96,16 @@ public class AppLovinMAXModule
|
|
|
95
96
|
|
|
96
97
|
private static final Point DEFAULT_AD_VIEW_OFFSET = new Point( 0, 0 );
|
|
97
98
|
|
|
99
|
+
private static final Map<String, String> ALCompatibleNativeSdkVersions = new HashMap<>();
|
|
100
|
+
|
|
101
|
+
static
|
|
102
|
+
{
|
|
103
|
+
ALCompatibleNativeSdkVersions.put( "8.0.3", "13.0.0" );
|
|
104
|
+
ALCompatibleNativeSdkVersions.put( "8.0.2", "13.0.0" );
|
|
105
|
+
ALCompatibleNativeSdkVersions.put( "8.0.1", "13.0.0" );
|
|
106
|
+
ALCompatibleNativeSdkVersions.put( "8.0.0", "13.0.0" );
|
|
107
|
+
}
|
|
108
|
+
|
|
98
109
|
public static AppLovinMAXModule instance;
|
|
99
110
|
@Nullable
|
|
100
111
|
private static Activity currentActivity;
|
|
@@ -141,6 +152,14 @@ public class AppLovinMAXModule
|
|
|
141
152
|
{
|
|
142
153
|
super( reactContext );
|
|
143
154
|
|
|
155
|
+
// Check that plugin version is compatible with native SDK version
|
|
156
|
+
String minCompatibleNativeSdkVersion = ALCompatibleNativeSdkVersions.get( PLUGIN_VERSION );
|
|
157
|
+
boolean isCompatible = isInclusiveVersion( AppLovinSdk.VERSION, minCompatibleNativeSdkVersion, null );
|
|
158
|
+
if ( !isCompatible )
|
|
159
|
+
{
|
|
160
|
+
throw new RuntimeException( "Incompatible native SDK version " + AppLovinSdk.VERSION + " found for plugin " + PLUGIN_VERSION );
|
|
161
|
+
}
|
|
162
|
+
|
|
144
163
|
instance = this;
|
|
145
164
|
currentActivity = reactContext.getCurrentActivity();
|
|
146
165
|
|
|
@@ -374,9 +393,6 @@ public class AppLovinMAXModule
|
|
|
374
393
|
|
|
375
394
|
// MAX Terms and Privacy Policy Flow
|
|
376
395
|
|
|
377
|
-
@ReactMethod
|
|
378
|
-
public void setConsentFlowEnabled(final boolean enabled) { }
|
|
379
|
-
|
|
380
396
|
@ReactMethod
|
|
381
397
|
public void setTermsAndPrivacyPolicyFlowEnabled(final boolean enabled)
|
|
382
398
|
{
|
|
@@ -2384,4 +2400,55 @@ public class AppLovinMAXModule
|
|
|
2384
2400
|
|
|
2385
2401
|
return constants;
|
|
2386
2402
|
}
|
|
2403
|
+
|
|
2404
|
+
//
|
|
2405
|
+
// Version Utils
|
|
2406
|
+
//
|
|
2407
|
+
|
|
2408
|
+
private boolean isInclusiveVersion(final String version, @Nullable final String minVersion, @Nullable final String maxVersion)
|
|
2409
|
+
{
|
|
2410
|
+
if ( TextUtils.isEmpty( version ) ) return true;
|
|
2411
|
+
|
|
2412
|
+
int versionCode = toVersionCode( version );
|
|
2413
|
+
|
|
2414
|
+
// if version is less than the minimum version
|
|
2415
|
+
if ( !TextUtils.isEmpty( minVersion ) )
|
|
2416
|
+
{
|
|
2417
|
+
int minVersionCode = toVersionCode( minVersion );
|
|
2418
|
+
|
|
2419
|
+
if ( versionCode < minVersionCode ) return false;
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2422
|
+
// if version is greater than the maximum version
|
|
2423
|
+
if ( !TextUtils.isEmpty( maxVersion ) )
|
|
2424
|
+
{
|
|
2425
|
+
int maxVersionCode = toVersionCode( maxVersion );
|
|
2426
|
+
|
|
2427
|
+
if ( versionCode > maxVersionCode ) return false;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
return true;
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
private static int toVersionCode(String versionString)
|
|
2434
|
+
{
|
|
2435
|
+
String[] versionNums = versionString.split( "\\." );
|
|
2436
|
+
|
|
2437
|
+
int versionCode = 0;
|
|
2438
|
+
for ( String num : versionNums )
|
|
2439
|
+
{
|
|
2440
|
+
// Each number gets two digits in the version code.
|
|
2441
|
+
if ( num.length() > 2 )
|
|
2442
|
+
{
|
|
2443
|
+
w( "Version number components cannot be longer than two digits -> " + versionString );
|
|
2444
|
+
return versionCode;
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
versionCode *= 100;
|
|
2448
|
+
versionCode += Integer.parseInt( num );
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
return versionCode;
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2387
2454
|
}
|
package/ios/AppLovinMAX.m
CHANGED
|
@@ -29,6 +29,12 @@
|
|
|
29
29
|
@property (nonatomic, assign, readonly, getter=al_isValidString) BOOL al_validString;
|
|
30
30
|
@end
|
|
31
31
|
|
|
32
|
+
@interface ALUtils (ALUtils)
|
|
33
|
+
+ (BOOL)isInclusiveVersion:(NSString *)version
|
|
34
|
+
forMinVersion:(nullable NSString *)minVersion
|
|
35
|
+
maxVersion:(nullable NSString *)maxVersion;
|
|
36
|
+
@end
|
|
37
|
+
|
|
32
38
|
@interface AppLovinMAX()
|
|
33
39
|
|
|
34
40
|
// Parent Fields
|
|
@@ -67,6 +73,7 @@
|
|
|
67
73
|
@implementation AppLovinMAX
|
|
68
74
|
static NSString *const SDK_TAG = @"AppLovinSdk";
|
|
69
75
|
static NSString *const TAG = @"AppLovinMAX";
|
|
76
|
+
static NSString *const PLUGIN_VERSION = @"8.0.3";
|
|
70
77
|
|
|
71
78
|
static NSString *const USER_GEOGRAPHY_GDPR = @"G";
|
|
72
79
|
static NSString *const USER_GEOGRAPHY_OTHER = @"O";
|
|
@@ -132,9 +139,23 @@ static NSString *const BOTTOM_RIGHT = @"bottom_right";
|
|
|
132
139
|
|
|
133
140
|
static AppLovinMAX *AppLovinMAXShared; // Shared instance of this bridge module.
|
|
134
141
|
|
|
142
|
+
static NSDictionary<NSString *, NSString *> *ALCompatibleNativeSDKVersions;
|
|
143
|
+
|
|
135
144
|
// To export a module named AppLovinMAX ("RCT" automatically removed)
|
|
136
145
|
RCT_EXPORT_MODULE()
|
|
137
146
|
|
|
147
|
+
+ (void)initialize
|
|
148
|
+
{
|
|
149
|
+
[super initialize];
|
|
150
|
+
|
|
151
|
+
ALCompatibleNativeSDKVersions = @{
|
|
152
|
+
@"8.0.3" : @"13.0.0",
|
|
153
|
+
@"8.0.2" : @"13.0.0",
|
|
154
|
+
@"8.0.1" : @"13.0.0",
|
|
155
|
+
@"8.0.0" : @"13.0.0"
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
138
159
|
// `init` requires main queue b/c of UI code
|
|
139
160
|
+ (BOOL)requiresMainQueueSetup
|
|
140
161
|
{
|
|
@@ -173,13 +194,24 @@ RCT_EXPORT_MODULE()
|
|
|
173
194
|
self.adViewConstraints = [NSMutableDictionary dictionaryWithCapacity: 2];
|
|
174
195
|
self.adUnitIdentifiersToShowAfterCreate = [NSMutableArray arrayWithCapacity: 2];
|
|
175
196
|
self.disabledAdaptiveBannerAdUnitIdentifiers = [NSMutableSet setWithCapacity: 2];
|
|
176
|
-
|
|
197
|
+
|
|
177
198
|
self.safeAreaBackground = [[UIView alloc] init];
|
|
178
199
|
self.safeAreaBackground.hidden = YES;
|
|
179
200
|
self.safeAreaBackground.backgroundColor = UIColor.clearColor;
|
|
180
201
|
self.safeAreaBackground.translatesAutoresizingMaskIntoConstraints = NO;
|
|
181
202
|
self.safeAreaBackground.userInteractionEnabled = NO;
|
|
182
203
|
[ROOT_VIEW_CONTROLLER.view addSubview: self.safeAreaBackground];
|
|
204
|
+
|
|
205
|
+
// Check that plugin version is compatible with native SDK version
|
|
206
|
+
NSString *minCompatibleNativeSdkVersion = ALCompatibleNativeSDKVersions[PLUGIN_VERSION];
|
|
207
|
+
BOOL isCompatible = [ALUtils isInclusiveVersion: ALSdk.version
|
|
208
|
+
forMinVersion: minCompatibleNativeSdkVersion
|
|
209
|
+
maxVersion: nil];
|
|
210
|
+
if ( !isCompatible )
|
|
211
|
+
{
|
|
212
|
+
[NSException raise: NSInternalInconsistencyException
|
|
213
|
+
format: @"Incompatible native SDK version (%@) found for plugin (%@)", minCompatibleNativeSdkVersion, PLUGIN_VERSION];
|
|
214
|
+
}
|
|
183
215
|
}
|
|
184
216
|
return self;
|
|
185
217
|
}
|
|
@@ -210,7 +242,7 @@ RCT_EXPORT_METHOD(initialize:(NSString *)pluginVersion :(NSString *)sdkKey :(RCT
|
|
|
210
242
|
}
|
|
211
243
|
|
|
212
244
|
ALSdkInitializationConfiguration *initConfig = [ALSdkInitializationConfiguration configurationWithSdkKey: sdkKey builderBlock:^(ALSdkInitializationConfigurationBuilder *builder) {
|
|
213
|
-
|
|
245
|
+
|
|
214
246
|
builder.mediationProvider = ALMediationProviderMAX;
|
|
215
247
|
builder.pluginVersion = [@"React-Native-" stringByAppendingString: pluginVersion];
|
|
216
248
|
builder.segmentCollection = [self.segmentCollectionBuilder build];
|
|
@@ -338,11 +370,6 @@ RCT_EXPORT_METHOD(setInitializationAdUnitIds:(NSArray<NSString *> *)adUnitIds)
|
|
|
338
370
|
|
|
339
371
|
#pragma mark - MAX Terms and Privacy Policy Flow
|
|
340
372
|
|
|
341
|
-
RCT_EXPORT_METHOD(setConsentFlowEnabled:(BOOL)enabled)
|
|
342
|
-
{
|
|
343
|
-
self.sdk.settings.consentFlowSettings.enabled = enabled;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
373
|
RCT_EXPORT_METHOD(setTermsAndPrivacyPolicyFlowEnabled:(BOOL)enabled)
|
|
347
374
|
{
|
|
348
375
|
self.sdk.settings.termsAndPrivacyPolicyFlowSettings.enabled = enabled;
|
|
@@ -352,14 +379,12 @@ RCT_EXPORT_METHOD(setPrivacyPolicyUrl:(NSString *)urlString)
|
|
|
352
379
|
{
|
|
353
380
|
NSURL *url = [NSURL URLWithString: urlString];
|
|
354
381
|
self.sdk.settings.termsAndPrivacyPolicyFlowSettings.privacyPolicyURL = url;
|
|
355
|
-
self.sdk.settings.consentFlowSettings.privacyPolicyURL = url;
|
|
356
382
|
}
|
|
357
383
|
|
|
358
384
|
RCT_EXPORT_METHOD(setTermsOfServiceUrl:(NSString *)urlString)
|
|
359
385
|
{
|
|
360
386
|
NSURL *url = [NSURL URLWithString: urlString];
|
|
361
387
|
self.sdk.settings.termsAndPrivacyPolicyFlowSettings.termsOfServiceURL = url;
|
|
362
|
-
self.sdk.settings.consentFlowSettings.termsOfServiceURL = url;
|
|
363
388
|
}
|
|
364
389
|
|
|
365
390
|
RCT_EXPORT_METHOD(setConsentFlowDebugUserGeography:(NSString *)userGeography)
|
|
@@ -425,7 +450,7 @@ RCT_EXPORT_METHOD(getSegments:(RCTPromiseResolveBlock)resolve :(RCTPromiseReject
|
|
|
425
450
|
}
|
|
426
451
|
|
|
427
452
|
NSArray<MASegment *> *segments = self.sdk.segmentCollection.segments;
|
|
428
|
-
|
|
453
|
+
|
|
429
454
|
if ( ![segments count] )
|
|
430
455
|
{
|
|
431
456
|
resolve(nil);
|
|
@@ -440,7 +465,7 @@ RCT_EXPORT_METHOD(getSegments:(RCTPromiseResolveBlock)resolve :(RCTPromiseReject
|
|
|
440
465
|
NSString *strKey = [segment.key stringValue];
|
|
441
466
|
jsObj[strKey] = segment.values;
|
|
442
467
|
}
|
|
443
|
-
|
|
468
|
+
|
|
444
469
|
resolve(jsObj);
|
|
445
470
|
}
|
|
446
471
|
|
|
@@ -2070,7 +2095,7 @@ RCT_EXPORT_METHOD(destroyNativeUIComponentAdView:(NSString *)adUnitIdentifier
|
|
|
2070
2095
|
ON_APPOPEN_AD_FAILED_TO_DISPLAY_EVENT,
|
|
2071
2096
|
ON_APPOPEN_AD_HIDDEN_EVENT,
|
|
2072
2097
|
ON_APPOPEN_AD_REVENUE_PAID,
|
|
2073
|
-
|
|
2098
|
+
|
|
2074
2099
|
ON_NATIVE_UI_COMPONENT_ADVIEW_AD_LOADED_EVENT,
|
|
2075
2100
|
ON_NATIVE_UI_COMPONENT_ADVIEW_AD_LOAD_FAILED_EVENT];
|
|
2076
2101
|
}
|
|
@@ -2118,7 +2143,7 @@ RCT_EXPORT_METHOD(destroyNativeUIComponentAdView:(NSString *)adUnitIdentifier
|
|
|
2118
2143
|
|
|
2119
2144
|
@"ON_NATIVE_UI_COMPONENT_ADVIEW_AD_LOADED_EVENT" : ON_NATIVE_UI_COMPONENT_ADVIEW_AD_LOADED_EVENT,
|
|
2120
2145
|
@"ON_NATIVE_UI_COMPONENT_ADVIEW_AD_LOAD_FAILED_EVENT" : ON_NATIVE_UI_COMPONENT_ADVIEW_AD_LOAD_FAILED_EVENT,
|
|
2121
|
-
|
|
2146
|
+
|
|
2122
2147
|
@"TOP_CENTER_POSITION" : TOP_CENTER,
|
|
2123
2148
|
@"TOP_LEFT_POSITION" : TOP_LEFT,
|
|
2124
2149
|
@"TOP_RIGHT_POSITION" : TOP_RIGHT,
|
|
@@ -2131,7 +2156,7 @@ RCT_EXPORT_METHOD(destroyNativeUIComponentAdView:(NSString *)adUnitIdentifier
|
|
|
2131
2156
|
|
|
2132
2157
|
@"BANNER_AD_FORMAT_LABEL" : MAAdFormat.banner.label,
|
|
2133
2158
|
@"MREC_AD_FORMAT_LABEL" : MAAdFormat.mrec.label,
|
|
2134
|
-
|
|
2159
|
+
|
|
2135
2160
|
@"MAX_ERROR_CODE_UNSPECIFIED" : @(MAErrorCodeUnspecified),
|
|
2136
2161
|
@"MAX_ERROR_CODE_NO_FILL" : @(MAErrorCodeNoFill),
|
|
2137
2162
|
@"MAX_ERROR_CODE_AD_LOAD_FAILED" : @(MAErrorCodeAdLoadFailed),
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.ConsentFlowUserGeography = exports.CMPErrorCode = exports.AppTrackingStatus = exports.AppLovinMAX = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
const NativeAppLovinMAX = _reactNative.NativeModules.AppLovinMAX;
|
|
9
|
-
const VERSION = '8.0.
|
|
9
|
+
const VERSION = '8.0.3';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* This enum represents the user's geography used to determine the type of consent flow shown to the
|
|
@@ -73,14 +73,6 @@ export type AppLovinMAXType = {
|
|
|
73
73
|
* @param value Parameter value.
|
|
74
74
|
*/
|
|
75
75
|
setExtraParameter(key: string, value: string | null): void;
|
|
76
|
-
/**
|
|
77
|
-
* @deprecated Use {@link setTermsAndPrivacyPolicyFlowEnabled()} instead.
|
|
78
|
-
*
|
|
79
|
-
* Enables the MAX Terms Flow.
|
|
80
|
-
*
|
|
81
|
-
* @param enabled true to enable the MAX Terms Flow.
|
|
82
|
-
*/
|
|
83
|
-
setConsentFlowEnabled(enabled: boolean): void;
|
|
84
76
|
/**
|
|
85
77
|
* Enables the MAX Terms and Privacy Policy Flow.
|
|
86
78
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppLovinMAX.d.ts","sourceRoot":"","sources":["../../../../src/types/AppLovinMAX.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B;;;OAGG;IACH,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAElC;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEnD;;;;OAIG;IACH,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEtD;;OAEG;IACH,qBAAqB,IAAI,IAAI,CAAC;IAE9B;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE5B;;;;OAIG;IACH,iBAAiB,CAAC,qBAAqB,EAAE,OAAO,GAAG,IAAI,CAAC;IAExD;;;;;OAKG;IACH,2BAA2B,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE5D;;;;OAIG;IACH,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnD;;;;;OAKG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAE3D
|
|
1
|
+
{"version":3,"file":"AppLovinMAX.d.ts","sourceRoot":"","sources":["../../../../src/types/AppLovinMAX.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B;;;OAGG;IACH,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAElC;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEnD;;;;OAIG;IACH,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEtD;;OAEG;IACH,qBAAqB,IAAI,IAAI,CAAC;IAE9B;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE5B;;;;OAIG;IACH,iBAAiB,CAAC,qBAAqB,EAAE,OAAO,GAAG,IAAI,CAAC;IAExD;;;;;OAKG;IACH,2BAA2B,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE5D;;;;OAIG;IACH,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAEnD;;;;;OAKG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAE3D;;;;OAIG;IACH,mCAAmC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAE5D;;;;;OAKG;IACH,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7C;;;;;OAKG;IACH,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9C;;;;OAIG;IACH,gCAAgC,CAAC,aAAa,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAEhF;;;;;;;;OAQG;IACH,sBAAsB,IAAI,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;IAEnD;;;;OAIG;IACH,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpC;;;;;;;;OAQG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzD;;;;;;OAMG;IACH,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;CACxD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-applovin-max",
|
|
3
3
|
"author": "AppLovin Corporation <support@applovin.com> (https://applovin.com)",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.3",
|
|
5
5
|
"description": "AppLovin MAX React Native Plugin for Android and iOS",
|
|
6
6
|
"main": "lib/commonjs/index",
|
|
7
7
|
"module": "lib/module/index",
|
|
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.authors = package["author"]
|
|
13
13
|
|
|
14
14
|
s.platforms = { :ios => min_ios_version_supported }
|
|
15
|
-
s.source = { :git => "https://github.com/AppLovin/AppLovin-MAX-React-Native.git", :tag => "
|
|
15
|
+
s.source = { :git => "https://github.com/AppLovin/AppLovin-MAX-React-Native.git", :tag => "release_8_0_3" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/AppLovinMAX*.{h,m}"
|
|
18
18
|
|
package/src/AppLovinMAX.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Configuration } from './types/Configuration';
|
|
|
4
4
|
|
|
5
5
|
const NativeAppLovinMAX = NativeModules.AppLovinMAX;
|
|
6
6
|
|
|
7
|
-
const VERSION = '8.0.
|
|
7
|
+
const VERSION = '8.0.3';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* This enum represents the user's geography used to determine the type of consent flow shown to the
|
package/src/types/AppLovinMAX.ts
CHANGED
|
@@ -86,15 +86,6 @@ export type AppLovinMAXType = {
|
|
|
86
86
|
*/
|
|
87
87
|
setExtraParameter(key: string, value: string | null): void;
|
|
88
88
|
|
|
89
|
-
/**
|
|
90
|
-
* @deprecated Use {@link setTermsAndPrivacyPolicyFlowEnabled()} instead.
|
|
91
|
-
*
|
|
92
|
-
* Enables the MAX Terms Flow.
|
|
93
|
-
*
|
|
94
|
-
* @param enabled true to enable the MAX Terms Flow.
|
|
95
|
-
*/
|
|
96
|
-
setConsentFlowEnabled(enabled: boolean): void;
|
|
97
|
-
|
|
98
89
|
/**
|
|
99
90
|
* Enables the MAX Terms and Privacy Policy Flow.
|
|
100
91
|
*
|