react-native-applovin-max 4.1.3 → 4.1.4
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
|
@@ -251,11 +251,13 @@ public class AppLovinMAXNativeAdView
|
|
|
251
251
|
clickableViews.add( view );
|
|
252
252
|
|
|
253
253
|
MaxNativeAdImage icon = nativeAd.getNativeAd().getIcon();
|
|
254
|
-
|
|
255
|
-
// Check if "URL" was missing and therefore need to set the image data
|
|
256
|
-
if ( icon.getUri() == null && icon.getDrawable() != null )
|
|
254
|
+
if ( icon != null )
|
|
257
255
|
{
|
|
258
|
-
|
|
256
|
+
// Check if "URL" was missing and therefore need to set the image data
|
|
257
|
+
if ( icon.getUri() == null && icon.getDrawable() != null )
|
|
258
|
+
{
|
|
259
|
+
view.setImageDrawable( icon.getDrawable() );
|
|
260
|
+
}
|
|
259
261
|
}
|
|
260
262
|
}
|
|
261
263
|
|
|
@@ -215,12 +215,14 @@
|
|
|
215
215
|
[self.clickableViews addObject: view];
|
|
216
216
|
|
|
217
217
|
MANativeAdImage *icon = self.nativeAd.nativeAd.icon;
|
|
218
|
-
|
|
219
|
-
// Check if "URL" was missing and therefore need to set the image data
|
|
220
|
-
if ( !icon.URL && icon.image )
|
|
218
|
+
if ( icon )
|
|
221
219
|
{
|
|
222
|
-
|
|
223
|
-
|
|
220
|
+
// Check if "URL" was missing and therefore need to set the image data
|
|
221
|
+
if ( !icon.URL && icon.image )
|
|
222
|
+
{
|
|
223
|
+
RCTImageView *iconImageView = (RCTImageView *) view;
|
|
224
|
+
iconImageView.defaultImage = icon.image;
|
|
225
|
+
}
|
|
224
226
|
}
|
|
225
227
|
}
|
|
226
228
|
|
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.
|
|
4
|
+
"version": "4.1.4",
|
|
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_4_1_4" }
|
|
15
15
|
|
|
16
16
|
s.source_files = "ios/AppLovinMAX*.{h,m}"
|
|
17
17
|
|
package/src/index.js
CHANGED