forked from organicmaps/organicmaps
Added Megafon banner URL method
This commit is contained in:
parent
8f26473d15
commit
4a192b51b0
4 changed files with 15 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -7,4 +7,5 @@
|
|||
namespace ads
|
||||
{
|
||||
extern bool HasMegafonDownloaderBanner(storage::Storage const & storage, std::string const & mwmId);
|
||||
extern std::string GetMegafonDownloaderBannerUrl();
|
||||
} // namespace ads
|
||||
|
|
Loading…
Add table
Reference in a new issue