Skip to content

Commit

Permalink
Set package_type in android_binary rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam Korlam committed Dec 13, 2017
1 parent 9412088 commit 9994d90
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@

[ui]
build_rule_minimum_duration_millis = 500

[ndk]
gcc_version=4.9
app_platform = android-24
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ final class AndroidBinaryRuleComposer extends AndroidBuckRuleComposer {
.cpuFilters(mappedCpuFilters)
.minifyEnabled(target.minifyEnabled)
.proguardConfig(fileRule(proguardConfig))
.debuggable(target.debuggable)
.placeholders(target.placeholders)
.includesVectorDrawables(target.includesVectorDrawables)
.preprocessJavaClassesDeps(transformDeps)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ String manifestSkeleton,
String keystore,
String preprocessJavaClassesBash,
String proguardConfig,
boolean debuggable,
int linearAllocHardLimit,
Collection primaryDexPatterns,
Collection cpuFilters,
Expand Down Expand Up @@ -55,6 +56,11 @@ boolean multidexEnabled,
android_sdk_proguard_config = 'none',
proguard_config = '@proguardConfig',
}
@if (debuggable) {
package_type = 'debug',
} else {
package_type = 'release',
}
@if (includesVectorDrawables) {
includes_vector_drawables = True,
}
Expand Down

0 comments on commit 9994d90

Please sign in to comment.