react-native-applovin-max 2.5.2 → 2.5.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
CHANGED
|
@@ -12,7 +12,7 @@ buildscript {
|
|
|
12
12
|
|
|
13
13
|
repositories {
|
|
14
14
|
google()
|
|
15
|
-
|
|
15
|
+
mavenCentral()
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
dependencies {
|
|
@@ -41,8 +41,8 @@ android {
|
|
|
41
41
|
defaultConfig {
|
|
42
42
|
minSdkVersion 16
|
|
43
43
|
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
|
|
44
|
-
versionCode
|
|
45
|
-
versionName "2.5.
|
|
44
|
+
versionCode 2050300
|
|
45
|
+
versionName "2.5.3"
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
flavorDimensions("default")
|
|
@@ -74,7 +74,6 @@ android {
|
|
|
74
74
|
|
|
75
75
|
repositories {
|
|
76
76
|
mavenCentral()
|
|
77
|
-
jcenter()
|
|
78
77
|
google()
|
|
79
78
|
|
|
80
79
|
def found = false
|
package/ios/AppLovinMAX.m
CHANGED
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
@property (nonatomic, strong, nullable) NSNumber *creativeDebuggerEnabledToSet;
|
|
43
43
|
@property (nonatomic, strong, nullable) NSNumber *consentFlowEnabledToSet;
|
|
44
44
|
@property (nonatomic, strong, nullable) NSURL *privacyPolicyURLToSet;
|
|
45
|
+
@property (nonatomic, strong, nullable) NSURL *termsOfServiceURLToSet;
|
|
45
46
|
|
|
46
47
|
// Fullscreen Ad Fields
|
|
47
48
|
@property (nonatomic, strong) NSMutableDictionary<NSString *, MAInterstitialAd *> *interstitials;
|
|
@@ -154,9 +155,11 @@ RCT_EXPORT_METHOD(initialize:(NSString *)pluginVersion :(NSString *)sdkKey :(RCT
|
|
|
154
155
|
ALSdkSettings *settings = [[ALSdkSettings alloc] init];
|
|
155
156
|
settings.consentFlowSettings.enabled = self.consentFlowEnabledToSet.boolValue;
|
|
156
157
|
settings.consentFlowSettings.privacyPolicyURL = self.privacyPolicyURLToSet;
|
|
158
|
+
settings.consentFlowSettings.termsOfServiceURL = self.termsOfServiceURLToSet;
|
|
157
159
|
|
|
158
160
|
self.consentFlowEnabledToSet = nil;
|
|
159
161
|
self.privacyPolicyURLToSet = nil;
|
|
162
|
+
self.termsOfServiceURLToSet = nil;
|
|
160
163
|
|
|
161
164
|
// Initialize SDK
|
|
162
165
|
self.sdk = [ALSdk sharedWithKey: sdkKey settings: settings];
|
|
@@ -334,6 +337,11 @@ RCT_EXPORT_METHOD(setPrivacyPolicyUrl:(NSString *)urlString)
|
|
|
334
337
|
self.privacyPolicyURLToSet = [NSURL URLWithString: urlString];
|
|
335
338
|
}
|
|
336
339
|
|
|
340
|
+
RCT_EXPORT_METHOD(setTermsOfServiceUrl:(NSString *)urlString)
|
|
341
|
+
{
|
|
342
|
+
self.termsOfServiceURLToSet = [NSURL URLWithString: urlString];
|
|
343
|
+
}
|
|
344
|
+
|
|
337
345
|
#pragma mark - Event Tracking
|
|
338
346
|
|
|
339
347
|
RCT_EXPORT_METHOD(trackEvent:(NSString *)event :(NSDictionary<NSString *, id> *)parameters)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-applovin-max",
|
|
3
3
|
"author": "AppLovin Corporation",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.3",
|
|
5
5
|
"description": "AppLovin MAX React Native Plugin for Android and iOS",
|
|
6
6
|
"homepage": "https://github.com/AppLovin/AppLovin-MAX-React-Native",
|
|
7
7
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.authors = package["author"]
|
|
12
12
|
|
|
13
13
|
s.platforms = { :ios => "10.0" }
|
|
14
|
-
s.source = { :git => "https://github.com/AppLovin/AppLovin-MAX-React-Native.git", :tag => "
|
|
14
|
+
s.source = { :git => "https://github.com/AppLovin/AppLovin-MAX-React-Native.git", :tag => "release_2_5_3" }
|
|
15
15
|
|
|
16
16
|
s.source_files = "ios/AppLovinMAX*.{h,m}"
|
|
17
17
|
|
package/src/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import AdView from "./AppLovinMAXAdView";
|
|
|
3
3
|
|
|
4
4
|
const { AppLovinMAX } = NativeModules;
|
|
5
5
|
|
|
6
|
-
const VERSION = "2.5.
|
|
6
|
+
const VERSION = "2.5.3";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* This enum represents whether or not the consent dialog should be shown for this user.
|
|
@@ -111,6 +111,7 @@ export default {
|
|
|
111
111
|
/* setCreativeDebuggerEnabled(enabled) */
|
|
112
112
|
/* setConsentFlowEnabled(enabled) */
|
|
113
113
|
/* setPrivacyPolicyUrl(urlString) */
|
|
114
|
+
/* setTermsOfServiceUrl(urlString) */
|
|
114
115
|
|
|
115
116
|
/*----------------*/
|
|
116
117
|
/* EVENT TRACKING */
|