react-native-applovin-max 2.4.2 → 2.5.0
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 +14 -2
- package/ios/AppLovinMAX.m +12 -2
- package/ios/AppLovinMAX.xcworkspace/xcuserdata/thomasso.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/package.json +1 -1
- package/react-native-applovin-max.podspec +1 -1
- package/src/index.js +1 -1
package/android/build.gradle
CHANGED
|
@@ -574,7 +574,13 @@ public class AppLovinMAXModule
|
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
@ReactMethod()
|
|
577
|
-
public void showInterstitial(final String adUnitId
|
|
577
|
+
public void showInterstitial(final String adUnitId)
|
|
578
|
+
{
|
|
579
|
+
showInterstitialWithPlacement( adUnitId, null );
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
@ReactMethod()
|
|
583
|
+
public void showInterstitialWithPlacement(final String adUnitId, final String placement)
|
|
578
584
|
{
|
|
579
585
|
MaxInterstitialAd interstitial = retrieveInterstitial( adUnitId );
|
|
580
586
|
interstitial.showAd( placement );
|
|
@@ -610,7 +616,13 @@ public class AppLovinMAXModule
|
|
|
610
616
|
}
|
|
611
617
|
|
|
612
618
|
@ReactMethod()
|
|
613
|
-
public void showRewardedAd(final String adUnitId
|
|
619
|
+
public void showRewardedAd(final String adUnitId)
|
|
620
|
+
{
|
|
621
|
+
showRewardedAdWithPlacement( adUnitId, null );
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
@ReactMethod()
|
|
625
|
+
public void showRewardedAdWithPlacement(final String adUnitId, final String placement)
|
|
614
626
|
{
|
|
615
627
|
MaxRewardedAd rewardedAd = retrieveRewardedAd( adUnitId );
|
|
616
628
|
rewardedAd.showAd( placement );
|
package/ios/AppLovinMAX.m
CHANGED
|
@@ -450,7 +450,12 @@ RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(isInterstitialReady:(NSString *)adUnitIde
|
|
|
450
450
|
return @([interstitial isReady]);
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
RCT_EXPORT_METHOD(showInterstitial:(NSString *)adUnitIdentifier
|
|
453
|
+
RCT_EXPORT_METHOD(showInterstitial:(NSString *)adUnitIdentifier)
|
|
454
|
+
{
|
|
455
|
+
[self showInterstitialWithPlacement: adUnitIdentifier : nil];
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
RCT_EXPORT_METHOD(showInterstitialWithPlacement:(NSString *)adUnitIdentifier :(NSString *)placement)
|
|
454
459
|
{
|
|
455
460
|
MAInterstitialAd *interstitial = [self retrieveInterstitialForAdUnitIdentifier: adUnitIdentifier];
|
|
456
461
|
[interstitial showAdForPlacement: placement];
|
|
@@ -476,7 +481,12 @@ RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(isRewardedAdReady:(NSString *)adUnitIdent
|
|
|
476
481
|
return @([rewardedAd isReady]);
|
|
477
482
|
}
|
|
478
483
|
|
|
479
|
-
RCT_EXPORT_METHOD(showRewardedAd:(NSString *)adUnitIdentifier
|
|
484
|
+
RCT_EXPORT_METHOD(showRewardedAd:(NSString *)adUnitIdentifier)
|
|
485
|
+
{
|
|
486
|
+
[self showRewardedAdWithPlacement: adUnitIdentifier : nil];
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
RCT_EXPORT_METHOD(showRewardedAdWithPlacement:(NSString *)adUnitIdentifier :(NSString *)placement)
|
|
480
490
|
{
|
|
481
491
|
MARewardedAd *rewardedAd = [self retrieveRewardedAdForAdUnitIdentifier: adUnitIdentifier];
|
|
482
492
|
[rewardedAd showAdForPlacement: placement];
|
package/ios/AppLovinMAX.xcworkspace/xcuserdata/thomasso.xcuserdatad/UserInterfaceState.xcuserstate
CHANGED
|
Binary file
|
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.
|
|
4
|
+
"version": "2.5.0",
|
|
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_0" }
|
|
15
15
|
|
|
16
16
|
s.source_files = "ios/AppLovinMAX*.{h,m}"
|
|
17
17
|
|