Skip to content

Applib-HarmonyOS/AppRate-for-ohos

Repository files navigation

.github/workflows/main.yml Quality Gate Status

AppRate

A HMOS library which provides AppRate animation

Source

Inspired by kikoso/AppRate-for-Android - version 1.0

Feature

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.

Dependency

  1. 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'
}
  1. 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'
	}
  1. 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'
         }

Usage

In code

super.onStart(intent);
        setUIContent(ResourceTable.Layout_ability_main);
        new AppRater(this)
                .setMinDays(0)
                .setMinLaunches(0)
                .setAppTitle("My Title")
                .init();

About

A HMOS library which provides AppRate animation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages