Skip to content

Instantly share code, notes, and snippets.

@mcginty mcginty/lilia.patch
Created Dec 18, 2015

Embed
What would you like to do?
From 0038bcf8357699fc20e73ed8abaa2079d138e638 Mon Sep 17 00:00:00 2001
From: Jake McGinty <me@jake.su>
Date: Fri, 18 Dec 2015 15:00:35 -0800
Subject: [PATCH] blahblah
---
AndroidManifest.xml | 8 ++++----
build.gradle | 2 ++
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index d33ef2c..6abc9d1 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -7,7 +7,7 @@
<uses-sdk tools:overrideLibrary="com.amulyakhare.textdrawable,com.astuetz.pagerslidingtabstrip,pl.tajchert.waitingdots,com.h6ah4i.android.multiselectlistpreferencecompat"/>
- <permission android:name="org.thoughtcrime.securesms.ACCESS_SECRETS"
+ <permission android:name="${applicationId}.ACCESS_SECRETS"
android:label="Access to TextSecure Secrets"
android:protectionLevel="signature" />
@@ -21,7 +21,7 @@
<uses-feature android:name="android.hardware.portrait" android:required="false"/>
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
- <uses-permission android:name="org.thoughtcrime.securesms.ACCESS_SECRETS"/>
+ <uses-permission android:name="${applicationId}.ACCESS_SECRETS"/>
<uses-permission android:name="android.permission.READ_PROFILE"/>
<uses-permission android:name="android.permission.WRITE_PROFILE"/>
<uses-permission android:name="android.permission.BROADCAST_WAP_PUSH"
@@ -85,9 +85,9 @@
<uses-permission android:name="android.permission.READ_LOGS"/>
<uses-permission android:name="android.permission.WRITE_CALL_LOG"/>
- <permission android:name="org.thoughtcrime.securesms.permission.C2D_MESSAGE"
+ <permission android:name="${applicationId}.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
- <uses-permission android:name="org.thoughtcrime.securesms.permission.C2D_MESSAGE" />
+ <uses-permission android:name="${applicationId}.permission.C2D_MESSAGE" />
<application android:name=".ApplicationContext"
android:icon="@drawable/icon"
diff --git a/build.gradle b/build.gradle
index f316abf..39eeb7b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -187,6 +187,8 @@ android {
buildTypes {
debug {
minifyEnabled true
+ applicationIdSuffix ".dev"
+ buildConfigField "String", "TEXTSECURE_URL", "\"https://textsecure-service-staging.whispersystems.org\""
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-google-play-services.pro',
'proguard-dagger.pro',
--
2.6.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.