From 642bf79275e76611437b399e600489c3ad960899 Mon Sep 17 00:00:00 2001 From: David Black Date: Fri, 26 Oct 2012 23:33:25 +0100 Subject: [PATCH] replace prebuild with a patch --- metadata/org.mariotaku.twidere.txt | 20 ++----------------- .../org.mariotaku.twidere/constants.patch | 16 +++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 metadata/org.mariotaku.twidere/constants.patch diff --git a/metadata/org.mariotaku.twidere.txt b/metadata/org.mariotaku.twidere.txt index 088258d333..a05589a4d4 100644 --- a/metadata/org.mariotaku.twidere.txt +++ b/metadata/org.mariotaku.twidere.txt @@ -40,25 +40,9 @@ Build Version:0.1.5,33,b3409715af,target=Google Inc.:Google APIs:16 Build Version:0.1.6,35,b87d64e197,target=Google Inc.:Google APIs:16 Build Version:0.1.8,39,4946938d3,target=Google Inc.:Google APIs:16 Build Version:0.1.9,42,ff62cd1fb,target=Google Inc.:Google APIs:16 -Build Version:0.2.0,47,0.2.0,prebuild=\ -sed -i 's/PrivateConstants.GOOGLE_MAPS_API_KEY_RELEASE/"0kjPwJOe_zwYjzGc9uYak7vhm_Sf3eob-2L3Xzw"/g' \ -src/org/mariotaku/twidere/Constants.java && \ -sed -i 's/PrivateConstants.GOOGLE_MAPS_API_KEY_DEBUG/"1LhWN5eWaqRrP0ZgO3h7vevsAwtJJs80C-G9o7RA"/g' \ -src/org/mariotaku/twidere/Constants.java && \ -sed -i 's/PrivateConstants.TWITTER_CONSUMER_SECRET/"JARXkJTfxo0F8MyctYy9bUmrLISjo8vXAHsZHYuk2E"/g' \ -src/org/mariotaku/twidere/Constants.java && \ -sed -i 's/PrivateConstants.TWITTER_CONSUMER_KEY/"uAFVpMhBntJutfVj6abfA"/g' \ -src/org/mariotaku/twidere/Constants.java +Build Version:0.2.0,47,0.2.0,patch=constants.patch Build Version:0.2.0.5,48,!no source -Build Version:0.2.1,49,0.2.1,prebuild=rm -rf dist/ && \ -sed -i 's/PrivateConstants.GOOGLE_MAPS_API_KEY_RELEASE/"0kjPwJOe_zwYjzGc9uYak7vhm_Sf3eob-2L3Xzw"/g' \ -src/org/mariotaku/twidere/Constants.java && \ -sed -i 's/PrivateConstants.GOOGLE_MAPS_API_KEY_DEBUG/"1LhWN5eWaqRrP0ZgO3h7vevsAwtJJs80C-G9o7RA"/g' \ -src/org/mariotaku/twidere/Constants.java && \ -sed -i 's/PrivateConstants.TWITTER_CONSUMER_SECRET/"JARXkJTfxo0F8MyctYy9bUmrLISjo8vXAHsZHYuk2E"/g' \ -src/org/mariotaku/twidere/Constants.java && \ -sed -i 's/PrivateConstants.TWITTER_CONSUMER_KEY/"uAFVpMhBntJutfVj6abfA"/g' \ -src/org/mariotaku/twidere/Constants.java +Build Version:0.2.1,49,0.2.1,prebuild=rm -rf dist/,patch=constants.patch Auto Update Mode:None #May as well do manual diff --git a/metadata/org.mariotaku.twidere/constants.patch b/metadata/org.mariotaku.twidere/constants.patch new file mode 100644 index 0000000000..b06a65f62f --- /dev/null +++ b/metadata/org.mariotaku.twidere/constants.patch @@ -0,0 +1,16 @@ +diff --git a/src/org/mariotaku/twidere/Constants.java b/src/org/mariotaku/twidere/Constants.java +index ffd4af6..185c2a1 100644 +--- a/src/org/mariotaku/twidere/Constants.java ++++ b/src/org/mariotaku/twidere/Constants.java +@@ -49,10 +49,10 @@ public interface Constants extends TwitterConstants { + public static final int DATABASES_VERSION = 29; + + // Following 4 consants are not included in source code. +- public static final String TWITTER_CONSUMER_KEY = PrivateConstants.TWITTER_CONSUMER_KEY; +- public static final String TWITTER_CONSUMER_SECRET = PrivateConstants.TWITTER_CONSUMER_SECRET; +- public static final String GOOGLE_MAPS_API_KEY_RELEASE = PrivateConstants.GOOGLE_MAPS_API_KEY_RELEASE; +- public static final String GOOGLE_MAPS_API_KEY_DEBUG = PrivateConstants.GOOGLE_MAPS_API_KEY_DEBUG; ++ public static final String TWITTER_CONSUMER_KEY = "uAFVpMhBntJutfVj6abfA"; ++ public static final String TWITTER_CONSUMER_SECRET = "JARXkJTfxo0F8MyctYy9bUmrLISjo8vXAHsZHYuk2E"; ++ public static final String GOOGLE_MAPS_API_KEY_RELEASE = "0kjPwJOe_zwYjzGc9uYak7vhm_Sf3eob-2L3Xzw"; ++ public static final String GOOGLE_MAPS_API_KEY_DEBUG = "1LhWN5eWaqRrP0ZgO3h7vevsAwtJJs80C-G9o7RA";