Skip to content

Commit

Permalink
Huawei Ads implementation way is changed to compileOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusemrre authored May 23, 2022
1 parent 8308dca commit bc90c3e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
30 changes: 25 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">Huawei-Smart Ad Server Mediation Github Documentation</h3>

![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)
<br>
![Supported Platforms](https://img.shields.io/badge/Supported_Platforms:-Native_Android-orange)

Expand Down Expand Up @@ -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:<latest_version>'
//Adapter SDK
implementation 'com.github.Explore-In-HMS:huawei.ads.smartadsserver_mediation:<latest_version>'
// 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>'
...
}
```

<h3>Latest version of SDKs</h3>
<ul>
<li><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/publisher-service-version-change-history-0000001050066909">Check the Huawei Ads SDKs here</a></li>
<li><a href="#version-change-history">Check the version of adapter here</a></li>
</ul>


**Important:** _To add Huawei Ads Kit SDK and Mediation adapter, the native project should be opened with Android Studio._
Expand Down Expand Up @@ -152,6 +165,13 @@ To allow HTTP and HTTPS network requests on devices with targetSdkVersion 28 or

# Version Change History

## 1.0.1

<ul>
<li>Integration methods of Huawei Ads SDK in the plugin have been changed to <a href="https://docs.gradle.org/2.12/release-notes.html#support-for-declaring-compile-time-only-dependencies-with-java-plugin"><i>compileOnly</i></a>.</li>
<li>Huawei Ads SDK (lite or prime) has to be added externally to the app anymore.</li>
</ul>

## 1.0.0

First version of the Custom Adapter.
Expand Down
4 changes: 2 additions & 2 deletions smart_mediation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

0 comments on commit bc90c3e

Please sign in to comment.