A HMOS library which provides AppRate animation
Inspired by kikoso/AppRate-for-Android - version 1.0
AppRate-for-HMOS is a library that allows users to rate application in a non intrusive way. A prompt with options like Do not ask again, No thanks and Rate is displayed.
- For using apprate module in sample app, include the source code and add the below dependencies in entry/build.gradle to generate hap/support.har.
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
implementation project(path: ':app_module')
testImplementation 'junit:junit:4.13'
ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100'
}
- For using apprate in separate application using har file, add the har file in the entry/libs folder and add the dependencies in entry/build.gradle file.
dependencies {
implementation fileTree(dir: 'libs', include: ['*.har'])
testImplementation 'junit:junit:4.13'
}
- For using apprate from a remote repository in separate application, add the below dependencies in entry/build.gradle file.
dependencies {
implementation 'dev.applibgroup:apprateforohos:1.0.0'
testCompile 'junit:junit:4.13'
}
super.onStart(intent);
setUIContent(ResourceTable.Layout_ability_main);
new AppRater(this)
.setMinDays(0)
.setMinLaunches(0)
.setAppTitle("My Title")
.init();