Skip to content

How to update

Jahir Fiquitiva edited this page Apr 21, 2024 · 59 revisions

How to update?

Updating is usually easy, but some times, it requires a few extra steps.

First

Upgrade the Kuper library version.

To do it, go to the buildSrc/src/main/java/Versions.kt file.

Then look for these lines:

const val kuper = "x.x.x"

Update the version code with the latest, which currently is: (ignore the v character)

Next

The following steps are to apply some more specific or complex changes that are required every now and then to keep the apps completely up to date.

This might be a bit overwhelming at first, but once you get used to it, it will become easier.

The first thing you need to do, is check what version of Kuper are you currently using and which one is the latest.

Let's say you are currently at version 2.3.0 and the latest is 2.3.7.

You must go version by version like: 2.3.1, then 2.3.2, then 2.3.3, and so forth, until you get to 2.3.7.

If you don't see a version listed below, for example 2.3.1, then it means no additional changes are required for that specific version, and you can move on with the next one, which would be 2.3.2.

Check below for the additional required changes. They usually have a link to a commit or a comparison, that looks like the following:



Some things to note:

  • Red means code that was removed.
  • Green means code that was added.
  • Always, the whole line will be highlighted, but it doesn't mean the whole line was removed/added. And you might find small parts of the code in a line being highlighted with a darker color.

If you still need help, you can always join the discord server and ask any questions you have or ask for help.


Additional required changes:

v 2.5.1

Apply the changes from this commit

v 2.5.0

Apply the changes from this commit

v 2.4.9

Apply the changes from this commit

v 2.4.7

Apply the changes from this commit

v 2.4.6

Apply the changes from this commit

v 2.4.5

Apply the changes from this commit

v2.4.2

Apply the changes from this commit

v2.4.1

Apply the changes from this commit.

And make sure to update the Gradle configuration in Android Studio like this:

v2.4.0

Apply the changes from this commit.

v2.3.8

Check the changes in this commit

v2.3.6

Check the changes in this commit

v2.3.5

Check the changes in this commit

v2.3.4

Check the changes in this commit

v2.3.3

Check the changes in this commit

v2.3.2

Check the changes in this comparison

v2.2.8

Check the changes in this commit

v2.2.5

Check the changes in this commit

v2.2.4

Check the changes in this commit

v2.2.3

Check the changes in this commit and this commit

v2.2.1

Check the changes in this commit and this commit

v2.1.6

You can now change snackbars colors. Be sure to set them up in colors.xml file

v2.1.3

If you want to customize your app even more that you already can, you might want to apply the changes in this commit

v2.0.8

Check the changes in this commit

v2.0.7

The frames_setup.xml file was split in 2 and the new dashboard_setup.xml has been created. Be sure to set them up.

v2.0.0 and newer

The dashboard was rewritten from scratch. Read the wiki for any changes.

v1.7.1

Add this line to the app's AndroidManifest.xml

v1.7.0

Check and apply the changes in this commit

v1.6.3

Check and apply the changes in this commit

v1.6 and newer

Check and apply the changes in this commit.

Then delete the folder .idea/libraries/ and all build folders, and then restart Android Studio using the Invalidate Caches and Restart option.

v1.4.9

Check the changes in this commit.

v1.4.6

Update the app/build.gradle and dependencies.gradle files.

v1.4.4

Update the app/build.gradle and dependencies.gradle files.

v1.4.2

Easy as doing the same changes in the files that this commit shows.

v1.3.8

Easy as doing the same changes in the files that this commit shows.

v1.3.6

Easy as doing the same changes in the files that this commit shows.

v1.3.1 to v1.3.3

Easy as doing the same changes in the files that this commit shows. Basically just some minor version updates.

v1.2.7

  1. Update your build.gradle to match the new app/build.gradle file
  2. Update the proguard files:
  3. Changelog support has been added. Check how to set it up here.

v1.1.5

  1. OneSignal plugin version is now explicitly defined due to some issues. Check the new app/build.gradle file here.

  2. Notifications are enabled by default now, if you don't want them to be enabled you can easily set this config to false in app/src/main/res/values/frames_configs.xml:

<!-- Do you want notifications to be enabled for all your users?
-       True means yes
-       False means no
-->
<bool name="notifications_enabled_by_default">true</bool>

v1.1.0 and newer

  1. Many things in the project changed, but it's all for good. Please kindly check my last commit and apply these changes to your project :)

  2. Firebase is not used for notifications anymore. Start using OneSignal which is easier to setup. Tutorial available in wiki.

v1.0.8

Basically just do what I did in this commit 😅

v1.0.6

Update these files:

  • app/build.gradle
  • app/proguard-rules.pro

Their content changed to fix some issues.

v1.0.4

Some things changed in AndroidManifest.xml. Apply those changes in your projects too. Check what changed here

Clone this wiki locally