Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 2.22 KB

building_a_flavor.md

File metadata and controls

52 lines (31 loc) · 2.22 KB

Work in progress

Building your own Arcticons flavor

Arcticons is currently set up to support more than one color. You can set it up easily by copying the black or white folder and renaming it to whatever color you like.

image

From there you can add the new color to the build gradle here:

image

In the build gradle you can change, add & delete the different collor options by modifying these lines to your liking:

image

Make sure to include the suffix in your flavor or else it will override the default Arcticons pack.

If you followed these steps correctly, you've changed the app name and added a build flavor correctly!

Testing a build flavor

In file > project structure, go to the Build Variants tab here:

image

  1. Go to the Flavors tab
  2. Click the Plus to create a new flavor and name it.
  3. Add the suffix from the build gradle to the suffix field.

Open the build variant tab:

image

Select your flavor and use the debug button to run it on a virtual or plugged device.

Optional: Changing the application ID

To fully make the app more of your own, you can change the application ID, by default it's com.donnnno.arcticons. You can change those first parts to anything you like by refactoring the project.

Genetrating a signed APK:

In short,

  1. go to Build > Generate Signed App Bundle / APK
  2. Select APK
  3. Fill in the details, you can create a signing key here, and use it for all your releases. image
  4. Select the flavors you want to build and you're done!

You can view a more detailed instruction about app signing here: https://developer.android.com/studio/publish/app-signing