danielideriba / AdsKitHMSExample

Ads Kit Huawei Examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AdsKitHMSExample

General configuration

For iOS

Install Homebrew :

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Node.js :

brew install node

Install watchmen :

brew install watchman

Install React Native CLI :

npm install -g react-native-cli

Install Android Studio

https://developer.android.com/studio

Install Visual Studio Code

https://code.visualstudio.com/

For Windows

Install Chocolatey

https://chocolatey.org/ @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Install Node.js :

choco install -y nodejs.install

Install React Native CLI :

npm install -g react-native-cli

Install Android Studio

https://developer.android.com/studio

Install Visual Studio Code

https://code.visualstudio.com/

With environment ready

Install the HMS plugin for Ads Kit. Follow the command: npm i @hmscore/react-native-hms-ads

React Native command to build the app: react-native init [PROJECT NAME] - Build Android/iOS and start project react-native run-android - Build Android environment react-native start - Run metro

https://www.npmjs.com/package/@hmscore/react-native-hms-ads

Adb Tips

adb uninstall [PACKAGE NAME] - Remove app from device

Usefull links

https://developer.huawei.com/consumer/en/hms/huawei-adskit/ https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-References/ads-0000001050311042?ha_source=hms1

About

Ads Kit Huawei Examples


Languages

Language:Java 38.8%Language:Objective-C 28.0%Language:JavaScript 16.6%Language:Starlark 12.0%Language:Ruby 4.6%