}
buildTypes {
+ debug {
+ applicationIdSuffix ".debug"
+ manifestPlaceholders = [appName: "@string/app_name_debug"]
+ }
+
release {
minifyEnabled true
shrinkResources true
proguardFiles 'proguard-android.txt', 'proguard-rules.pro'
+ manifestPlaceholders = [appName: "@string/app_name"]
}
}
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
- android:label="@string/app_name"
+ android:label="${appName}"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
- android:label="@string/app_name"
+ android:label="${appName}"
android:launchMode="singleTask" >
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
android:theme="@style/AppTheme.InvisibleActivity"/>
<activity
android:name=".activity.HomeActivity"
- android:label="@string/app_name"
+ android:label="${appName}"
android:launchMode="singleTask"
android:enabled="false"
android:theme="@style/AppTheme.HomeActivity">
</activity>
<activity
android:name=".activity.KeyboardShortcutActivity"
- android:label="@string/app_name"
+ android:label="${appName}"
android:documentLaunchMode="always"
android:excludeFromRecents="true"
android:launchMode="singleTask"
</intent-filter>
</receiver>
<receiver android:name=".receiver.LockDeviceReceiver"
- android:label="@string/app_name"
+ android:label="${appName}"
android:enabled="false"
android:exported="true"
android:description="@string/device_admin_description_short"