From bc90c3e79e1f17df76875f352d7f604d25389578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yunus=20Emre=20Pekg=C3=BC=C3=A7?= Date: Mon, 23 May 2022 17:11:52 +0300 Subject: [PATCH] Huawei Ads implementation way is changed to compileOnly --- README.md | 30 +++++++++++++++++++++++++----- smart_mediation/build.gradle | 4 ++-- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index efc57ba..f5c8222 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

Huawei-Smart Ad Server Mediation Github Documentation

- ![Latest Version](https://img.shields.io/badge/latestVersion-1.0.0-yellow) ![Kotlin](https://img.shields.io/badge/language-kotlin-blue) + ![Latest Version](https://img.shields.io/badge/latestVersion-1.0.1-yellow) ![Kotlin](https://img.shields.io/badge/language-kotlin-blue)
![Supported Platforms](https://img.shields.io/badge/Supported_Platforms:-Native_Android-orange) @@ -94,18 +94,31 @@ In the app-level build.gradle, include Huawei Ads dependency (required by the ad ```groovy dependencies { - implementation 'com.github.Explore-In-HMS:huawei.ads.smartadsserver_mediation:v1.0.0' + //Huawei Ads Prime + implementation 'com.huawei.hms:ads-prime:' + //Adapter SDK + implementation 'com.github.Explore-In-HMS:huawei.ads.smartadsserver_mediation:' // Optional : add Smart support library for Huawei devices implementation 'com.smartadserver.android:smart-core-sdk-huawei-support:1.0.0' } ``` +> **_NOTE:_** If your app can run only on Huawei mobile phones, you can integrate the Huawei Ads Lite SDK instead of Huawei Ads SDK (Optional) -[Check the latest Huawei Ads SDK here](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/publisher-service-version-change-history-0000001050066909) - -[Check the latest version of adapter here](#version-change-history) +```groovy +dependencies { + //Huawei Ads Lite + implementation 'com.huawei.hms:ads-lite:' + ... +} +``` +

Latest version of SDKs

+ **Important:** _To add Huawei Ads Kit SDK and Mediation adapter, the native project should be opened with Android Studio._ @@ -152,6 +165,13 @@ To allow HTTP and HTTPS network requests on devices with targetSdkVersion 28 or # Version Change History +## 1.0.1 + +
    +
  • Integration methods of Huawei Ads SDK in the plugin have been changed to compileOnly.
  • +
  • Huawei Ads SDK (lite or prime) has to be added externally to the app anymore.
  • +
+ ## 1.0.0 First version of the Custom Adapter. diff --git a/smart_mediation/build.gradle b/smart_mediation/build.gradle index 1df1d03..5bbc543 100644 --- a/smart_mediation/build.gradle +++ b/smart_mediation/build.gradle @@ -43,8 +43,8 @@ dependencies { androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' implementation 'com.smartadserver.android:smart-display-sdk:7.14.0' - implementation 'com.huawei.hms:ads:3.4.49.305' - // to add Huawei support, uncomment the following line implementation 'com.smartadserver.android:smart-core-sdk-huawei-support:1.0.0' + + compileOnly 'com.huawei.hms:ads:3.4.54.300' } \ No newline at end of file