I have a script
apply plugin: 'android'
repositories {
mavenCentral()
}
dependencies {
compile 'commons-io:commons-io:2.4'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:18.0.+'
compile 'com.google.android.gms:play-services:3.2.+@aar'
compile project(':ViewPagerIndicator')
compile project(':AndroidHorizontalListView')
}
android {
compileSdkVersion 18
buildToolsVersion "18.1.0"
productFlavors {
main {
packageName "com.example"
}
flavor {
packageName "com.example.flavor"
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
hospa {
res.srcDirs = ['hospa/res']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java,
build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under
src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
flavor.setRoot('build-types/hospa');
}
signingConfigs {
debug {
storeFile file('../debug.keystore')
}
}
}
but when I run assembleFalvorDebug it build a main version app -- it
doesn;t contains changes which flavor should have. I think issue in folders
structure. I try a lot of different varian but result was the same. Could
you please show which folder structure I should have for this case?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.