dependencies by flavor in android studio build.gradle file, is it possible? -
image in build.gradle file have following dependencies:
dependencies { compile 'com.android.support:support-v13:22.1.1' compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.jakewharton:butterknife:6.0.0' }
and imagine have following product flavors defined:
productflavors { germanymock { applicationid "org.mymocksite.mock" } usamock { applicationid "org.myqasite.qa" }
}
suppose want have dependency flavor only, this:
dependencies { compile 'com.android.support:support-v13:22.1.1' compile 'com.android.support:appcompat-v7:22.1.1' usamockcompile 'com.jakewharton:butterknife:6.0.0'//this not work me }
so above not work me thinking since there testcompile , think mockcompile shouldn't there flavorcompile ? if not how can see "compiles" available me ?
change usamockcompile
change c c.
dependencies { compile 'com.android.support:support-v13:22.1.1' compile 'com.android.support:appcompat-v7:22.1.1' usamockcompile 'com.jakewharton:butterknife:6.0.0' }
Comments
Post a Comment