Flavor Free Charge
Build
Type Debug Release Debug Release
Uses 手元で
デバッグ
Store
(無料)
デバッグ・
営業
Store
(有料)
App Id
suffix .free.debug .free .debug
App name ◯◯Debug ◯◯Light ◯◯Debug ◯◯
Ad TRUE TRUE FALSE FALSE
81.
Flavor Free Charge
Build
Type Debug Release Debug Release
Uses Dev Store Dev Store
App Id
suffix .free.debug .free .debug
App name ◯◯Debug ◯◯Light ◯◯Debug ◯◯
テスト用のアプリと、Storeアプリが両方入れられる
Ad TRUE TRUE FALSE FALSE
82.
Flavor Free Charge
Build
Type Debug Release Debug Release
Uses Dev Store Dev Store
App Id
suffix .free.debug .free .debug
App name ◯◯Debug ◯◯Light ◯◯Debug ◯◯
テスト用のアプリと、Storeアプリが両方入れられる
FreeDebugビルド com.example.helloworld.debug.free
FreeReleaseビルド com.example.helloworld.free
ChargeReleaseAd ビTRUE ルド com.TRUE example.FALSE helloworld.FALSE
debug
ChargeReleaseビルド com.example.helloworld
83.
Flavor Free Charge
Build
Type Debug Release Debug Release
Uses Dev Store Dev Store
App Id
suffix .free.debug .free .debug
App name ◯◯Debug ◯◯Light ◯◯Debug ◯◯
テスト用のアプリと、Storeアプリが両方入れられる
未署名のアプリを入れたまま、Storeアプリを入れようとして
エラー吐かれることがなくなる
Ad TRUE TRUE FALSE FALSE
app/build/generated/source/
buildConfig/…/buildConfig.java
publicfinal class BuildConfig {
public static final boolean DEBUG = false;
public static final String APPLICATION_ID = "com.example.helloworld.free";
public static final String BUILD_TYPE = "release";
public static final String FLAVOR = "free";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.0";
/**
* @deprecated Use {@link #APPLICATION_ID}
*/
@Deprecated
public static final String PACKAGE_NAME = "com.example.helloworld.free";
}
142.
app/build/generated/source/
buildConfig/…/buildConfig.java
publicfinal class BuildConfig {
public static final boolean DEBUG = false;
public static final String APPLICATION_ID = "com.example.helloworld.free";
public static final String BUILD_TYPE = "release";
public static final String FLAVOR = "free";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.0";
これで書き分ける
/**
* @deprecated Use {@link #APPLICATION_ID}
*/
@Deprecated
public static final String PACKAGE_NAME = "com.example.helloworld.free";
}