Aggiornato script noise2cable.sh

This commit is contained in:
Paride Legovini 2017-01-19 18:14:01 +01:00
parent 709b0c7d11
commit 81bb969440

View file

@ -22,6 +22,8 @@ s/Noise$/Cable/g' {} +
sed -i 's|https://textsecure-service\.whispersystems\.org|https://139\.162\.192\.233:8080|' build.gradle
sed -i 's/Your (Signal|TextSecure) verification code:/Your (Cable) verification code:/' src/org/thoughtcrime/securesms/service/SmsListener.java
### The following are needed to install Cable in parallel with Signal or Noise:
@ -37,3 +39,32 @@ sed -i 's/org\.thoughtcrime\.securesms\.ACCESS_SECRETS/im.cable.cableim.ACCESS_S
# Probably deprecated and not used, could be removed altogether
sed -i 's/org\.thoughtcrime\.securesms\.permission\.C2D_MESSAGE/im.cable.cableim.permission.C2D_MESSAGE/' \
AndroidManifest.xml
### The Signal and Cable address books should be independent:
sed -i 's/vnd\.org\.thoughtcrime\.securesms\.contact/vnd.im.cable.cableim.contact/' \
AndroidManifest.xml \
res/xml/contactsformat.xml \
src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java
sed -i 's/vnd\.org\.thoughtcrime\.securesms\.call/vnd.im.cable.cableim.call/' \
AndroidManifest.xml \
res/xml/contactsformat.xml \
src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java
sed -i 's/"org\.thoughtcrime\.securesms"/"im.cable.cableim"/' \
src/org/thoughtcrime/securesms/util/DirectoryHelper.java \
res/xml/authenticator.xml \
res/xml/syncadapter.xml
### Change the giphy api key.
# Let's use the public beta key for now
# See: https://github.com/Giphy/GiphyAPI
sed -i 's/3o6ZsYH6U6Eri53TXy/dc6zaTOxFJmzC/' \
src/org/thoughtcrime/securesms/giph/net/GiphyGifLoader.java \
src/org/thoughtcrime/securesms/giph/net/GiphyStickerLoader.java