react-native-applovin-max 5.5.0 → 5.5.2
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 +3 -3
- package/android/src/main/java/com/applovin/reactnative/AppLovinMAXNativeAdView.java +1 -1
- package/ios/Podfile +1 -1
- package/ios/Podfile.lock +4 -4
- package/package.json +1 -1
- package/react-native-applovin-max.podspec +2 -2
- package/src/AppLovinMAXAdView.js +8 -8
- package/src/index.js +1 -1
package/android/build.gradle
CHANGED
|
@@ -35,8 +35,8 @@ android {
|
|
|
35
35
|
defaultConfig {
|
|
36
36
|
minSdkVersion 16
|
|
37
37
|
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
|
|
38
|
-
versionCode
|
|
39
|
-
versionName "5.5.
|
|
38
|
+
versionCode 5050200
|
|
39
|
+
versionName "5.5.2"
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
flavorDimensions("default")
|
|
@@ -140,5 +140,5 @@ dependencies {
|
|
|
140
140
|
// noinspection GradleDynamicVersion
|
|
141
141
|
api 'com.facebook.react:react-native:+'
|
|
142
142
|
|
|
143
|
-
implementation 'com.applovin:applovin-sdk:11.10.
|
|
143
|
+
implementation 'com.applovin:applovin-sdk:11.10.1'
|
|
144
144
|
}
|
|
@@ -401,7 +401,7 @@ public class AppLovinMAXNativeAdView
|
|
|
401
401
|
|
|
402
402
|
// Reassure the size of `mediaView` and its children for the networks, such as
|
|
403
403
|
// LINE, where the actual ad contents are loaded after `mediaView` is sized.
|
|
404
|
-
if ( mediaView != null )
|
|
404
|
+
if ( mediaView != null && mediaView.getParent() != null )
|
|
405
405
|
{
|
|
406
406
|
sizeToFit( mediaView, (View) mediaView.getParent() );
|
|
407
407
|
}
|
package/ios/Podfile
CHANGED
|
@@ -35,6 +35,6 @@ target 'AppLovinMAX' do
|
|
|
35
35
|
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
|
|
36
36
|
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
|
|
37
37
|
|
|
38
|
-
pod 'AppLovinSDK', '11.10.
|
|
38
|
+
pod 'AppLovinSDK', '11.10.1'
|
|
39
39
|
|
|
40
40
|
end
|
package/ios/Podfile.lock
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
PODS:
|
|
2
|
-
- AppLovinSDK (11.10.
|
|
2
|
+
- AppLovinSDK (11.10.1)
|
|
3
3
|
- boost-for-react-native (1.63.0)
|
|
4
4
|
- DoubleConversion (1.1.6)
|
|
5
5
|
- FBLazyVector (0.63.5)
|
|
@@ -249,7 +249,7 @@ PODS:
|
|
|
249
249
|
- Yoga (1.14.0)
|
|
250
250
|
|
|
251
251
|
DEPENDENCIES:
|
|
252
|
-
- AppLovinSDK (= 11.10.
|
|
252
|
+
- AppLovinSDK (= 11.10.1)
|
|
253
253
|
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
|
|
254
254
|
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
|
|
255
255
|
- FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`)
|
|
@@ -339,7 +339,7 @@ EXTERNAL SOURCES:
|
|
|
339
339
|
:path: "../node_modules/react-native/ReactCommon/yoga"
|
|
340
340
|
|
|
341
341
|
SPEC CHECKSUMS:
|
|
342
|
-
AppLovinSDK:
|
|
342
|
+
AppLovinSDK: a76e8ec3d34fb172c7a32c15efe6805e070c918a
|
|
343
343
|
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
|
|
344
344
|
DoubleConversion: cde416483dac037923206447da6e1454df403714
|
|
345
345
|
FBLazyVector: 352a8ca9bbc8e2f097d680747a8c97ecef12d469
|
|
@@ -368,6 +368,6 @@ SPEC CHECKSUMS:
|
|
|
368
368
|
ReactCommon: b9ff54b6dd22ba4a776eda22d7f83ec27544ca35
|
|
369
369
|
Yoga: 0276e9f20976c8568e107cfc1163a8629051adc0
|
|
370
370
|
|
|
371
|
-
PODFILE CHECKSUM:
|
|
371
|
+
PODFILE CHECKSUM: 9f395d11f7e7bcd9c5c5b391536914ac21dce40e
|
|
372
372
|
|
|
373
373
|
COCOAPODS: 1.11.3
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-applovin-max",
|
|
3
3
|
"author": "AppLovin Corporation",
|
|
4
|
-
"version": "5.5.
|
|
4
|
+
"version": "5.5.2",
|
|
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,10 +11,10 @@ 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_5_5_2" }
|
|
15
15
|
|
|
16
16
|
s.source_files = "ios/AppLovinMAX*.{h,m}"
|
|
17
17
|
|
|
18
18
|
s.dependency "React"
|
|
19
|
-
s.dependency "AppLovinSDK", "11.10.
|
|
19
|
+
s.dependency "AppLovinSDK", "11.10.1"
|
|
20
20
|
end
|
package/src/AppLovinMAXAdView.js
CHANGED
|
@@ -50,20 +50,20 @@ const AdView = (props) => {
|
|
|
50
50
|
} else {
|
|
51
51
|
height = isTablet ? 90 : 50;
|
|
52
52
|
}
|
|
53
|
-
setDimensions({width: (style
|
|
54
|
-
height: (style
|
|
53
|
+
setDimensions({width: (style?.width && style.width !== 'auto') ? style.width : width,
|
|
54
|
+
height: (style?.height && style.height !== 'auto') ? style.height : height});
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
// Check whether or not app specifies both width and height but not with 'auto'
|
|
58
|
-
const isSizeSpecified = ((style
|
|
59
|
-
(style
|
|
58
|
+
const isSizeSpecified = ((style?.width && style.width !== 'auto') &&
|
|
59
|
+
(style?.height && style.height !== 'auto'));
|
|
60
60
|
|
|
61
61
|
if (!isSizeSpecified) {
|
|
62
62
|
if (props.adFormat === AdFormat.BANNER) {
|
|
63
63
|
sizeForBannerFormat();
|
|
64
64
|
} else {
|
|
65
|
-
setDimensions({width: (style
|
|
66
|
-
height: (style
|
|
65
|
+
setDimensions({width: (style?.width && style.width !== 'auto') ? style.width : 300,
|
|
66
|
+
height: (style?.height && style.height !== 'auto') ? style.height : 250});
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}, []);
|
|
@@ -115,8 +115,8 @@ const AdView = (props) => {
|
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
{
|
|
118
|
-
const isSizeSpecified = ((style
|
|
119
|
-
(style
|
|
118
|
+
const isSizeSpecified = ((style?.width && style.width !== 'auto') &&
|
|
119
|
+
(style?.height && style.height !== 'auto'));
|
|
120
120
|
const isDimensionsSet = (Object.keys(dimensions).length > 0);
|
|
121
121
|
|
|
122
122
|
// Not sized yet
|