589
questions
1
vote
0
answers
18
views
Flutter - Using Flavors for optional SDKs
I plan to create two versions of my Flutter-App for different localities - one for the US and one for the EU. Now, I want to use the Meta-SDK for tracking ads, but am only allowed to keep this inside ...
0
votes
2
answers
158
views
Android: Configuration with name not found - Multiple flavors implementation
I'm trying to implement dependencies only for a specific build variant.
I have 4 flavors split in 2 dimensions as follows:
flavorDimensions += listOf(
ProjectAndroidConstants.APP_TYPE_DIMENSION,
...
1
vote
0
answers
53
views
How to Include Firebase Dependencies Only for a Specific Product Flavor in Android and Exclude Them Completely for Others?
Primarily, I want to clarify that this isn't a duplicate. I've gone through every question on Stack Overflow that has a similar topic but couldn't find a solution. I've also gone through the ...
1
vote
0
answers
59
views
Error: "Precondition check failed" when using Firebase App Distribution to distribute AAB
I'm trying to distribute an Android App Bundle (AAB) using Firebase App Distribution with the following command built with flutter:
firebase appdistribution:distribute build/app/outputs/bundle/...
0
votes
0
answers
23
views
flavorDimensions, Multiple errors with direct copy+paste from Android themselves [duplicate]
I directly copied and pasted a code snippet into my app level build.gradle.kts file. The snippet was from an up-to-date Android Studio tutorial. When I tried to sync my Gradle files, I got multiple ...
0
votes
0
answers
14
views
Flavor specific AndroidManifest with HOME intent
On Android, I am trying to give a specific flavor the HOME intent in order to be able to configure it as Launcher (load that app when Home button is pressed).
I have left the flavor's AndroidManifest....
0
votes
1
answer
86
views
Android - Gradle management of artifacts with different flavors
I have an Android Module that wraps an external library provided by an .aar file.
This lib is imported as follow:
configurations.maybeCreate("default") artifacts.add("default", ...
0
votes
1
answer
52
views
Android project with Multiple Modules with ProductFlavours in 2 modules
I my project i have multiple modules, like ModuleA, ModuleB, ModuleC, ModuleD, ModuleE, ModuleF
I have different Flavours in ModuleA like( sit, prod, prepord),
same in moduleB have different flavors ...
0
votes
0
answers
136
views
How to set and use in code base URL link using Flavors?
I am implementing flavors in my app. I set them like this:
flavorDimensions "default"
productFlavors {
production {
dimension "default"
...
2
votes
0
answers
67
views
How to create multiple application ID apks with different firebase project using single code base
Background :
I am developing a kotlin android app linked to firebase , already uploaded to google playstore. I need to upload identical app to google playstore with a different id and a name with a ...
2
votes
0
answers
136
views
gradle not recognizing local modules after adding product flavors to my android app
I have a multi-module app with 2 product flavors. I'm trying to specify the local modules that should be included in one flavor, but not another. Here's my :app module's build.gradle file:
plugins {
...
0
votes
0
answers
35
views
How to parse XML with XMLParser to obtain a string resource?
I am creating different product flavours for my jetpack compose application.
flavorDimensions += "environment"
productFlavors {
create("production") {
...
0
votes
2
answers
84
views
Android Import changes with flavor, even with same folder structure
My app has two flavors core and foss, default flavor is core.
I've got 3 subfolders in my src folder, core, foss and main.
I'm trying to access my Home Screen which is referenced in the MainActivity ...
0
votes
1
answer
587
views
How to create separate source sets for different flavors correctly android?
I have three flavors:
flavorDimensions += listOf("flavour_1", "flavour_2")
productFlavors {
create("Flavour1") {
applicationId = "com.pkg....
2
votes
0
answers
85
views
Android Flavor Within a Flavor for Differing ApplicationId's with no Standard Convention
I have a white label app that has over 200 different flavors. These flavors are of two types: company and platform. There are over 100 different companies and only 2 platforms. Each company has an app ...
0
votes
1
answer
63
views
Can we release 2 flavours of app with same package name but different minSdk in playstore?
Below is my code of app GRADLE file where I am overriding my default configurations by setting the flavor.
My app is already in play store, I have to integrate Health Connect library of google. As per ...
0
votes
0
answers
18
views
How to import flavour specific service from main/shared code?
I have a multi-flavor project which looks like this :
+ src
+ main // common code
+ java
- MainActivity
+ flavorOne
+ java
- MyService // buildvariant- ...
0
votes
1
answer
185
views
What can I do to publish my both application in appcenter in single build in jenkins?
I have developed an android application based on flavor, (ie) In single code source I'm getting 2 android application based on flavor. I was able to generate 2 application apk at the same time in ...
0
votes
1
answer
349
views
Android: Specify default flavor for dependency that has multiple flavors
I have a library project that depends on the library with flavors, and my library doesn't have those flavors, which cause build error. I can solve that by using missingDimensionStrategy("minApi&...
0
votes
1
answer
41
views
How to create a subflavor (or variant of existing flavor) with minimal duplicated code?
I am familiar with basics of flavors and dimensions, but not sure how to solve my problem.
Let's say I have 2 flavors in my app - GREEN and RED. They share common kotlin code and only differ in the ...
0
votes
1
answer
412
views
The best way to define flavor-specific navigation for NavHost with Jetpack Compose
I have a multi-flavored, modularized app. Currently, I have 4 flavors and just one feature module, e.g. :feature:cars
At the moment, the :feature:cars module should be connected only to 3 flavors out ...
0
votes
0
answers
32
views
Sharing code for root version and rootless version with flavors
I have two almost identical android projects that performs some tasks (heavy ones since I am using openCV) with the use of root permissions or simply without root.
I want to use flavors since it gets ...
0
votes
0
answers
150
views
Error when Building apk for Particular Flavor in Flutter
I have implemented flavors in my flutter application. When I try to build apk using this command
flutter build apk --release --flavor development -t lib/main_dev.dart
I get the following error, but ...
2
votes
2
answers
2k
views
android different applicationId & applicationIdSuffix by flavors chains
I have 2 target android flavor, with 2 different customer flavor.
I need:
first target with an appId and different suffix by customer
second target with a different appId without any suffix.
My ...
3
votes
1
answer
3k
views
Using Flavors with Flutter on iOS: ${PRODUCT_NAME} not working as intended
So I am trying to setup flavors in the iOS app of my Flutter project. My aim is to be able to have multiple flavors of the app simultaneously installed on my iPhone.
In order to achieve this, I ...
3
votes
0
answers
232
views
Unable to launch application when application suffix id is used for build variants
We have use case where one code base is used to create multiple apps,so we have used flavours approach and in each flavour we have three different build variants.Each flavor has a particular package ...
0
votes
1
answer
80
views
Including build variants in android project fails to update production apk on previous version release
My Android App project did not have any build variants earlier and I used to sign the production apk with simply the keystore credentials created by me and installed directly without publishing on ...
3
votes
2
answers
2k
views
React Native + Metro: Build Android / iOS with custom scripts
Premises
To allow for multi environment builds, the following Android flavors were set:
productFlavors {
development {
resValue "string", "app_name", "AppName Dev"
...
2
votes
1
answer
220
views
Android flavors - disable CMAKE for specific flavor
I have two running types for my Android application, one that includes integration with a C++ library and the other one is not.
I want to create two flavors that will support that:
Flavor1 without ...
2
votes
0
answers
95
views
Two android manifests in one flavor
I'm trying to build an app with platform-independent activities, but I also need to build an app that is multiplatform. So, I created the config:
sourceSets {
getByName("any") {
...
-2
votes
1
answer
121
views
How to hide a secret in a Flutter flavor?
I want my app to have two flavors: users' version and developers' version. Apparently, it is to be done with Flutter flavors.
I want developers' version to contain a "secret developers' key"....
0
votes
1
answer
144
views
How can I use specific classes when building an apk with Android Studio?
I searched a little about this here but didn't found anything that helps me, maybe because it's impossible but I need confirmation.
The situation is the following: I have an android app that integrate ...
2
votes
1
answer
2k
views
matchingFallbacks is deprecated in gradle 7.3.1
The phrase 'matchingFallbacks is deprecated' is seen in gradle 7.3.1
What are the alternatives?
[
4
votes
1
answer
2k
views
How to create splash screen for multiple flavours in flutter for both android and ios?
Is there any way for me to create different splash screen for multiple flavor in flutter?
1
vote
1
answer
31
views
Adding flavour based dependencies in Android
Hi I am trying to add some dependencies based on flavour in my Android project. My code looks like as follow
android {
productFlavors {
customextended {}
customini {}
}
}
...
0
votes
0
answers
104
views
Bind ViewModel from main flavor to overridden one in another flavor with Dagger
What I have
A project with one flavor except the main one.
In the main flavor I have MyFragment and MyViewModel.
MyFragment takes the half of the screen and is displayed in another fragment which ...
1
vote
1
answer
378
views
Android Studio: Inline compiler showing red errors only for Flavor specific Kotlin files, but compilation with gradle works fine
I know similar questions exist already. But my case seems different. I have these inline compiler error ONLY in the files that are Flavor specific; added in "...\src\myFlavor\...". And even ...
0
votes
1
answer
122
views
Can some one explain a few things for me on Flavors and build variants
Ok I am not sure if this has been asked before. But I am struggling with the core concepts of Build variants, flavors and the way they are structured.
I have a an app on Google play so I am gonna use ...
0
votes
0
answers
248
views
How to exclude some files from srcDir in a sourceSet?
I am Android Developer. I want create app in two flavour Free and Paid. But my requirement is whenever use Paid version then only Login.java should be call from Paid and rest of file should call from ...
0
votes
1
answer
2k
views
How to get BuildConfig in multi module app
I am quite new with android and now building some multi module android app. In my app module in build.gradle i set product flavors and i put there some variables for each environment. Now I have login ...
0
votes
1
answer
153
views
Dependent features configured but no package ID was set. Android two apps of one project.... Admin and User
error screen while building superadmin
Hello guys, I wanted to make an android app of admin separate from user app so I decided to make a module for it .SuperAdmin is an application module.I want to ...
0
votes
0
answers
41
views
How to write 'if' statement for free / paid productFlavors?
Wanting to learn how to publish free and paid versions of my app, I made a simple app in which the 'paid' version has an ImageView which opens a second Activity when clicked, and the 'free' version ...
2
votes
0
answers
354
views
Generating flavorDimensions and productFlavor via Gradle Plugin in multi-module project
I am building a Gradle Plugin that should generate both flavorDimensions and productFlavors on Android. Everything works fine when this plugin is being applied directly to the Android module. My goal ...
2
votes
1
answer
678
views
Use Android Studio composable preview with multiple flavored projects
I have a project with several flavors. Each of these flavors has its own configuration which is available as a json file in the assets folder in the respective project structure.
In the theme ...
1
vote
1
answer
4k
views
managing google service json for multiple build variant with different application ID
In my project, there is 2 build type debug and release as usual and one flavour dimension with 3 different values flavour_1, flavour_2 and flavour_3, so earlier all build variant has the same ...
9
votes
0
answers
1k
views
productFlavors main ~ Gradle Error: Multiple entries with same key: main=[] and main=[]
When I increased gradle version to gradle-7.3.3 from gradle-7.2, I receive a gradle sync error which is saying Multiple entries with same key: main=[] and main=[].
When I change my productFlavors name ...
1
vote
0
answers
129
views
Multiple keystore for flavors in flutter
I’ve an existing android native app has a 3 buildTypes every type has a keystore and want to migrate to flutter but I’m not sure about multi keystore in flutter
0
votes
0
answers
101
views
How to distinguish flavors vs in app purchases
Ok this is more informative question than on a coding question. However this is a two part question.
When building the flavors for example an MP3 player.. you would have free and premium. I started ...
1
vote
0
answers
96
views
Can Android ProductFlavors Link Same "externalNativeBuild"?
I got 6 flavors and every time when I generate 6 apks, it cost much time. I found AS build "cmake info" in "externalNativeBuild" for each flavor.
this is my gradle config for ...
0
votes
1
answer
200
views
How to run connectedCheck test command for debug build type and build flavor?
I run the connectedCheck command to execute my tests on the device and everything works well.
But when I use applicationIdSuffix ".debug" in debug build type the connectedCheck command does ...