forked from organicmaps/organicmaps
[android] Updated my target version
This commit is contained in:
parent
eb1e05e83a
commit
4b038a2f29
5 changed files with 39 additions and 5 deletions
|
@ -75,8 +75,11 @@ dependencies {
|
|||
implementation 'com.pushwoosh:pushwoosh:5.8.6'
|
||||
implementation 'com.pushwoosh:pushwoosh-gcm:5.8.6'
|
||||
implementation 'com.my.tracker:mytracker-sdk:1.5.3'
|
||||
implementation ('com.my.target:mytarget-sdk:4.6.14') {
|
||||
implementation ('com.my.target:mytarget-sdk:5.2.2') {
|
||||
exclude group: 'com.android.support'
|
||||
exclude group: 'com.google.android.exoplayer', module:'exoplayer-core'
|
||||
exclude group: 'com.google.android.exoplayer', module:'exoplayer-dash'
|
||||
exclude group: 'com.google.android.exoplayer', module:'exoplayer-hls'
|
||||
}
|
||||
implementation('com.mopub:mopub-sdk-native-static:5.0.0@aar') {
|
||||
exclude group: 'com.android.support'
|
||||
|
|
|
@ -8,7 +8,7 @@ import android.support.annotation.Nullable;
|
|||
import com.mapswithme.maps.PrivateVariables;
|
||||
import com.mapswithme.util.log.Logger;
|
||||
import com.mapswithme.util.log.LoggerFactory;
|
||||
import com.my.target.ads.CustomParams;
|
||||
import com.my.target.common.CustomParams;
|
||||
import com.my.target.nativeads.NativeAd;
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
|
||||
|
@ -64,6 +64,24 @@ class MyTargetAdsLoader extends CachingNativeAdLoader implements NativeAd.Native
|
|||
// No op.
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onVideoPlay(@NonNull NativeAd nativeAd)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onVideoPause(@NonNull NativeAd nativeAd)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onVideoComplete(@NonNull NativeAd nativeAd)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
String getProvider()
|
||||
|
|
|
@ -5,10 +5,10 @@ import android.support.annotation.Nullable;
|
|||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import com.my.target.ads.CustomParams;
|
||||
import com.my.target.common.CustomParams;
|
||||
import com.my.target.common.models.ImageData;
|
||||
import com.my.target.nativeads.NativeAd;
|
||||
import com.my.target.nativeads.banners.NativePromoBanner;
|
||||
import com.my.target.nativeads.models.ImageData;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ import com.mapswithme.util.log.Logger;
|
|||
import com.mapswithme.util.log.LoggerFactory;
|
||||
import com.mopub.common.MoPub;
|
||||
import com.mopub.common.SdkConfiguration;
|
||||
import com.my.target.common.MyTargetPrivacy;
|
||||
import io.fabric.sdk.android.Fabric;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -189,6 +190,7 @@ public class ExternalLibrariesMediator
|
|||
private void onDisabled()
|
||||
{
|
||||
Framework.disableAdProvider(Banner.Type.TYPE_RB);
|
||||
MyTargetPrivacy.setUserConsent(false);
|
||||
}
|
||||
|
||||
private void onEnabled()
|
||||
|
|
|
@ -158,8 +158,19 @@ public final class MytargetHelper
|
|||
@Override
|
||||
public void onClick(NativeAppwallBanner nativeAppwallBanner, NativeAppwallAd nativeAppwallAd) {}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void onDismissDialog(NativeAppwallAd nativeAppwallAd) {}
|
||||
public void onDisplay(@NonNull NativeAppwallAd nativeAppwallAd)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDismiss(@NonNull NativeAppwallAd nativeAppwallAd)
|
||||
{
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
res.load();
|
||||
|
|
Loading…
Add table
Reference in a new issue