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