-
-
Notifications
You must be signed in to change notification settings - Fork 30
Adding Kustom assets
Kustom require a set of files that go into 4 folders, depending on the asset: komponents
, wallpapers
, widgets
, lockscreens
.
Those 4 folders are inside src/main/assets
.
Copy your widgets files into the respective folders, keeping these things in mind:
-
komponents
: the file must end with.komp.zip
extension. -
wallpapers
: the file must end with.klwp.zip
extension. -
widgets
: the file must end with.kwgt.zip
extension. -
lockscreens
: the file must end with.klck.zip
extension.
Check the sample app assets for a real example.
And that's it.
Go to your project's AndroidManifest.xml, and search for the lines:
<!-- TODO: Remove comment marks to enable Kustom Skins
* Remove intent-filter action lines according to your needs.
* If you're not going to provide one of the options, remove its respective line.
<provider
android:name="org.kustom.api.Provider"
android:authorities="${applicationId}.kustom.provider"
android:exported="true"
tools:ignore="ExportedContentProvider">
<intent-filter>
<action android:name="org.kustom.provider.WALLPAPERS"/>
<action android:name="org.kustom.provider.WIDGETS"/>
<action android:name="org.kustom.provider.KOMPONENTS"/>
<action android:name="org.kustom.provider.LOCKSCREENS"/>
</intent-filter>
</provider>
-->
Remove the comment marks to enable Kustom.
Also, remove the intent filters for the things you won't use or include.
Go to res/values/kuper_setup.xml
and edit whatever you want.
I think the comments and names make the things self-explanatory, so it will be easy to do by yourself. This page explains it in full details though.
Copyright 2022 by Jahir Fiquitiva. This work is licensed under the CreativeCommons Attribution-ShareAlike 4.0 International License.
This list represents the step-to-step process to setup Kuper. It's organized so it's easier to follow. (Although you can do it in the order you want.)
- First steps
- Setting
build.gradle
up - Setting
AndroidManifest.xml
up - Change app icons
- Setting colors up
- Setting
MainActivity.kt
up - Setting
strings.xml
up - Setting
kuper_setup.xml
up - Setting
frames_setup.xml
up - Setting custom styles
- Adding Zooper widgets
- Adding Kustom assets
- Setting up Credits
- Optimize your wallpapers
- Setting up the wallpapers JSON file
- Enabling notifications
- Update your app's changelog
- Publish your app! 😃
- Update to latest version