• LANGUAGES
    • English English
    • Français Français

Sompom Digital Agency

Sompom Digital Agency

Sompom digital agency helps build Web & Mobile applications and games.

T (855) 78 900 736
Email: contact@sompom.com

Sompom Digital Agency
Parkway Square, St 163, Phnom Penh, Cambodia

Open in Google Maps
  • HOME
  • THE COMPANY
    • ABOUT US
    • CAREERS
    • HR OPPORTUNITIES
    • PROCESS
  • OUR EXPERTISE
  • OUR PRODUCTS
    • GAMES
      • Garden family quest, A Match 3 Puzzle game!
      • 1WORD, The best word game ever!
      • Boru the Amazing running Ninja!
      • Shapu, The brain taker!
    • APPLICATIONS
  • CONTACT US
  • MICROBLOGGING
  • Home
  • Android
  • ANDROID PRODUCT FLAVORS – One project to rule them all
December 6, 2019

ANDROID PRODUCT FLAVORS – One project to rule them all

ANDROID PRODUCT FLAVORS – One project to rule them all

by Sompom Team / Friday, 07 August 2015 / Published in Android, Application, development, Mobile

What is the problem:

First, If I want to build different app with Android studio, we have to create different projects. When you want to generate quickly different apps, that differs only because of content, it can really be a hassle if the number is high. Which is it in our case.

 

 

free football tips from the experts tipsterbets.co.uk best football tips and soccer predictions
free football tips from the experts BETIPS.CO.UK best football tips and soccer predictions

 

 

What’s the Solution:

Thank to Android Studio for providing a way to build different apps in one project. The technique is called Android Product Flavors.

An example of what we did:

 

  1. Adding the product flavor in build.gradle file. As you see in the picture, I have added many flavor and each flavor we can specify different property like applicationId…\

 

code

 

  1. What you have to do next is create the flavor folder under the scr folder as shown in screenshot. Then you can add what you want which is individual specification for each project in side flavor folder.
  1. Then you can select the flavor you want to build the app.
Tagged under: android, app, appdev, Application, build, flavors, gamedev, indiedev

What you can read next

Build on IOS running time…too long!!
2 collection views in 1 view controller
Daily Technical Note – TEXTURE COMPRESSION MEMO

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Daily Technical Note – TEXTURE COMPRESSION MEMO

        Texture Compression with Texture ...
  • 2 collection views in 1 view controller

    The idea: We need to use 2 collection views in ...
  • Build on IOS running time…too long!!

    Hi, Build on IOS running time : too long. The w...
  • Snippet for changing the language configuration from inside the app?

     Change language in application A usefull snipp...
  • Flow Layout in your face.

    There is no native FlowLayout component, so for...
  • About Us
  • Our Expertise
  • Microblogging
  • HR Opportunities
  • Careers
  • Contact Us
  • Privacy Policy
  • EULA

NEWSLETTER SIGNUP

By subscribing to our mailing list you will always be up to date with the latest news from us..

We will never spam!

GET IN TOUCH

T (855) 78 900 736
Email: contact@sompom.com

Sompom Digital Agency
Parkway Square, St 163, Phnom Penh, Cambodia

Open in Google Maps

14 days agoGARDEN FAMILY QUEST is an addicted casual farming game! https://t.co/Qo7T7AeFHf ##indiedev#indiegame#gamedev#puzzle via @Insompom
14 days ago1WORD! The best wordgame ever!! https://t.co/JC1wq5cwnr ##indiedev#indiegame#gamedev#puzzle via @Insompom
14 days agoFollow Sompom Digital Agency https://t.co/Qo7T7AeFHf #indiegame #indiegamedev #ios #webdevelopment via @Insompom
14 days agoFollow Sompom Digital Agency https://t.co/k6uWBLqZCf #indiegame #indiegamedev #ios #webdevelopment via @Insompom
220 days agoAnother great opportunities offer from SOMPOM. We are looking forward to working with who are experienced and pass… https://t.co/pKAknTFq7R
Follow @Insompom
  • Tweet
  • GET SOCIAL
Sompom Digital Agency

© 2016 All rights reserved. Sompom Web and Mobile agency.

TOP