Added Megafon banner URL method

This commit is contained in:
r.kuznetsov 2018-06-19 15:03:18 +03:00 committed by Arsentiy Milchakov
parent 8f26473d15
commit 4a192b51b0
4 changed files with 15 additions and 0 deletions

View file

@ -1638,4 +1638,10 @@ Java_com_mapswithme_maps_Framework_nativeHasMegafonDownloaderBanner(JNIEnv * env
return static_cast<jboolean>(ads::HasMegafonDownloaderBanner(frm()->GetStorage(),
jni::ToNativeString(env, mwmId)));
}
JNIEXPORT jstring JNICALL
Java_com_mapswithme_maps_Framework_nativeGetMegafonDownloaderBannerUrl(JNIEnv * env, jclass)
{
return jni::ToJavaString(env, ads::GetMegafonDownloaderBannerUrl());
}
} // extern "C"

View file

@ -438,4 +438,7 @@ public class Framework
public static native String nativeMoPubInitializationBannerId();
public static native boolean nativeHasMegafonDownloaderBanner(@NonNull String mwmId);
@NonNull
public static native String nativeGetMegafonDownloaderBannerUrl();
}

View file

@ -62,4 +62,9 @@ bool HasMegafonDownloaderBanner(storage::Storage const & storage, std::string co
}
return false;
}
std::string GetMegafonDownloaderBannerUrl()
{
return "https://localads.maps.me/redirects/megafon_downloader";
}
} // namespace ads

View file

@ -7,4 +7,5 @@
namespace ads
{
extern bool HasMegafonDownloaderBanner(storage::Storage const & storage, std::string const & mwmId);
extern std::string GetMegafonDownloaderBannerUrl();
} // namespace ads