public DefaultBuildType initWith(DefaultBuildType that) { _initWith(that); setDebuggable(that.isDebuggable()); setTestCoverageEnabled(that.isTestCoverageEnabled()); setJniDebuggable(that.isJniDebuggable()); setRenderscriptDebuggable(that.isRenderscriptDebuggable()); setRenderscriptOptimLevel(that.getRenderscriptOptimLevel()); setApplicationIdSuffix(that.getApplicationIdSuffix()); setVersionNameSuffix(that.getVersionNameSuffix()); setMinifyEnabled(that.isMinifyEnabled() ); setZipAlignEnabled(that.isZipAlignEnabled()); setSigningConfig(that.getSigningConfig()); setEmbedMicroApp(that.isEmbedMicroApp()); setPseudoLocalesEnabled(that.isPseudoLocalesEnabled()); return this; }
/** * Copies all properties from the given build type. * * <p>It can be used like this: * <pre> * android.buildTypes { * customBuildType { * initWith debug * // customize... * } * } * </pre> */ public DefaultBuildType initWith(BuildType that) { _initWith(that); setDebuggable(that.isDebuggable()); setTestCoverageEnabled(that.isTestCoverageEnabled()); setJniDebuggable(that.isJniDebuggable()); setRenderscriptDebuggable(that.isRenderscriptDebuggable()); setRenderscriptOptimLevel(that.getRenderscriptOptimLevel()); setVersionNameSuffix(that.getVersionNameSuffix()); setMinifyEnabled(that.isMinifyEnabled() ); setZipAlignEnabled(that.isZipAlignEnabled()); setSigningConfig(that.getSigningConfig()); setEmbedMicroApp(that.isEmbedMicroApp()); setPseudoLocalesEnabled(that.isPseudoLocalesEnabled()); return this; }