Commit 354b22d1 authored by Roumen Petrov's avatar Roumen Petrov

use new build variable "Term Application Id" in manifest and code

parent b22c1b20
......@@ -10,6 +10,10 @@ android {
versionCode 210
versionName '2.1.0'
// TermOnePlus applicationId
manifestPlaceholders = [ termApplicationId:"com.termoneplus"]
buildConfigField("String", "TERM_APPLICATION_ID", "\"com.termoneplus\"")
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
......
......@@ -4,7 +4,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.termoneplus.sample.intents">
<uses-permission android:name="com.termoneplus.permission.RUN_SCRIPT"/>
<uses-permission android:name="${termApplicationId}.permission.RUN_SCRIPT"/>
<application
android:allowBackup="false"
......
......@@ -25,7 +25,7 @@
private static final String ARGUMENT_WINDOW_HANDLE = "com.termoneplus.WindowHandle";
private static final String ARGUMENT_SHELL_COMMAND = "com.termoneplus.Command";
private static final String PERMISSION_RUN_SCRIPT = "com.termoneplus.permission.RUN_SCRIPT";
private static final String PERMISSION_RUN_SCRIPT = BuildConfig.TERM_APPLICATION_ID + ".permission.RUN_SCRIPT";
private static final int REQUEST_PERMISSION_RUN_SCRIPT = 101;
private static final int REQUEST_WINDOW_HANDLE = 1;
......
......@@ -10,6 +10,10 @@ android {
versionCode 210
versionName '2.1.0'
// TermOnePlus applicationId
manifestPlaceholders = [ termApplicationId:"com.termoneplus"]
buildConfigField("String", "TERM_APPLICATION_ID", "\"com.termoneplus\"")
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
......
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="jackpal.androidterm.sample.pathbroadcasts">
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="jackpal.androidterm.sample.pathbroadcasts">
<uses-permission android:name="com.termoneplus.permission.APPEND_TO_PATH"/>
<uses-permission android:name="${termApplicationId}.permission.APPEND_TO_PATH"/>
<!-- Declare this if you want to receive PATH prepend broadcasts -->
<uses-permission android:name="com.termoneplus.permission.PREPEND_TO_PATH"/>
<uses-permission android:name="${termApplicationId}.permission.PREPEND_TO_PATH"/>
<application android:label="@string/app_name">
<receiver android:name=".PathReceiver">
<intent-filter>
<action android:name="com.termoneplus.broadcast.APPEND_TO_PATH"/>
<action android:name="${termApplicationId}.broadcast.APPEND_TO_PATH"/>
</intent-filter>
<intent-filter>
<action android:name="com.termoneplus.broadcast.PREPEND_TO_PATH"/>
<action android:name="${termApplicationId}.broadcast.PREPEND_TO_PATH"/>
</intent-filter>
</receiver>
</application>
......
......@@ -33,8 +33,8 @@
@Deprecated
public class PathReceiver extends BroadcastReceiver {
public static final String ACTION_PATH_APPEND_BROADCAST = "com.termoneplus.broadcast.APPEND_TO_PATH";
public static final String ACTION_PATH_PREPEND_BROADCAST = "com.termoneplus.broadcast.PREPEND_TO_PATH";
public static final String ACTION_PATH_APPEND_BROADCAST = BuildConfig.TERM_APPLICATION_ID + ".broadcast.APPEND_TO_PATH";
public static final String ACTION_PATH_PREPEND_BROADCAST = BuildConfig.TERM_APPLICATION_ID + ".broadcast.PREPEND_TO_PATH";
/**
* Called when a broadcast matching the declared intent filters is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment