react-native-applovin-max 4.1.1 → 4.1.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.
@@ -41,8 +41,8 @@ android {
41
41
  defaultConfig {
42
42
  minSdkVersion 16
43
43
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
44
- versionCode 4010100
45
- versionName "4.1.1"
44
+ versionCode 4010300
45
+ versionName "4.1.3"
46
46
  }
47
47
 
48
48
  flavorDimensions("default")
package/ios/AppLovinMAX.m CHANGED
@@ -142,12 +142,7 @@ RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(isInitialized)
142
142
  RCT_EXPORT_METHOD(initialize:(NSString *)pluginVersion :(NSString *)sdkKey :(RCTResponseSenderBlock)callback)
143
143
  {
144
144
  // Guard against running init logic multiple times
145
- if ( [self isPluginInitialized] )
146
- {
147
- callback(@[@{@"consentDialogState" : @(self.sdk.configuration.consentDialogState),
148
- @"countryCode" : self.sdk.configuration.countryCode}]);
149
- return;
150
- }
145
+ if ( [self isPluginInitialized] ) return;
151
146
 
152
147
  self.pluginInitialized = YES;
153
148
 
@@ -72,7 +72,7 @@
72
72
  {
73
73
  [super didMoveToWindow];
74
74
 
75
- if ( !self.window )
75
+ if ( !self.window && !self.superview )
76
76
  {
77
77
  [self destroyCurrentAdIfNeeded];
78
78
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-applovin-max",
3
3
  "author": "AppLovin Corporation",
4
- "version": "4.1.1",
4
+ "version": "4.1.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 => "release_4_1_1" }
14
+ s.source = { :git => "https://github.com/AppLovin/AppLovin-MAX-React-Native.git", :tag => "release_4_1_3" }
15
15
 
16
16
  s.source_files = "ios/AppLovinMAX*.{h,m}"
17
17
 
package/src/index.js CHANGED
@@ -5,7 +5,7 @@ import NativeAdView from "./NativeAdView";
5
5
 
6
6
  const { AppLovinMAX } = NativeModules;
7
7
 
8
- const VERSION = "4.1.1";
8
+ const VERSION = "4.1.3";
9
9
 
10
10
  /**
11
11
  * This enum represents whether or not the consent dialog should be shown for this user.