Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lupadevstudio/kivy-in-app-review

In app review integration for kivy on android.
https://github.com/lupadevstudio/kivy-in-app-review

android in-app-review kivy python pythonforandroid

Last synced: 3 months ago
JSON representation

In app review integration for kivy on android.

Awesome Lists containing this project

README

        

# Kivy In-App-Review

This repository contains the information to integrate in app review using the Google Play Store API for Android applications developed with Kivy.

## License

This module is licensed under the Apache License version 2.0.

## Integration

> :warning: Warning:
> This module has only been tested for android API versions between 28 and 34. This might not work for older versions.

To integrate this module in your application you have to follow a few steps:

1. **Copy the code inside your folders** : You have to copy the `src` folder and the `kivyreview.py` file inside your own code arborescence. If you copy them at the root of your project, you can use directly the following instructions, if you prefer to rename the `src` folder or move the files somewhere else, do not forget to adapt the paths in the instructions to match the ones you used.

> :warning: Warning:
> Do not rename the `ReviewHandler.java` file unless you know what you are doing. You will need to adapt the java code in this case.

2. **Update your `buildozer.spec` file** : Some modifications needs to be done in the `buildozer.spec` file:

Search the line allowing to include gradle dependencies during compilation.

```
# android.gradle_dependencies =
```

It needs to be replaced by:

```
ndroid.gradle_dependencies = com.google.android.play:core:1.10.0
```

> :pencil: Note:
> If you already have other dependencies, just add a comma between them.

Search the line allowing to include additional java code in your application.

```
# android.add_src =
```

It needs to be replaced by:

```
android.add_src = src
```

3. **Call the `request_review` where yo need it** : You can now import the `request_review` function from the `kivyreview` module in your code and call it where you need it.

## Bugs and issues

If you encounter a problem or a bug during this procedure, please do not hesitate to raise an issue on this github repository.