aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler <bananeweizen@gmx.de>2013-12-22 23:12:50 +0100
committerMichael Keppler <bananeweizen@gmx.de>2013-12-22 23:12:50 +0100
commit60171130baf711b619668d773aa1ba6a1f02a025 (patch)
treeb0fd7c9bf87c444bfb833c171d08cba0c3e321f1
parentc9cf33103956eaa372ffc8566e4f3c9c9e28652a (diff)
downloadcgeo-60171130baf711b619668d773aa1ba6a1f02a025.zip
cgeo-60171130baf711b619668d773aa1ba6a1f02a025.tar.gz
cgeo-60171130baf711b619668d773aa1ba6a1f02a025.tar.bz2
build: have only one resource file with keys
-rw-r--r--README.md11
-rw-r--r--main/res/values/.gitignore1
-rw-r--r--main/templates/keys.xml13
-rw-r--r--main/templates/mapsapikey.xml4
-rw-r--r--main/templates/ocde_okapi.xml5
-rw-r--r--main/templates/ocpl_okapi.xml5
6 files changed, 19 insertions, 20 deletions
diff --git a/README.md b/README.md
index 37e40ca..14c07f5 100644
--- a/README.md
+++ b/README.md
@@ -51,12 +51,11 @@ If the workspace directory name contains a space and leads to errors in the -dex
3. copy `./main/templates/local.properties` to `./main/`
4. copy `./main/templates/local.properties` to `./tests/`
5. edit `local.properties` (see comments in the file)
-6. copy `./main/templates/mapsapikey.xml` to `./main/res/values/`
-7. edit `./main/res/values/mapsapikey.xml` and insert your Maps API key (see comments in the file)
-8. copy `./main/templates/ocde_okapi.xml` to `./main/res/values/`
-9. request your personal ConsumerKey and -Secret at [opencaching.de OKAPI signup](http://www.opencaching.de/okapi/signup.html)
-10. edit `./main/res/values/ocde_okapi.xml` and insert your keys there.
-11. Repeat steps 8-10 with `ocpl_okapi.xml` and [opencaching.pl OKAPI signup](http://www.opencaching.pl/okapi/signup.html)
+6. copy `./main/templates/keys.xml` to `./main/res/values/`
+7. edit `./main/res/values/keys.xml` and insert several keys (see comments in the file)
+7.a) Google Maps API key
+7.b) request your personal consumer key and secret at [opencaching.de OKAPI signup](http://www.opencaching.de/okapi/signup.html)
+7.c) request your personal consumer key and secret at [opencaching.pl OKAPI signup](http://www.opencaching.pl/okapi/signup.html)
### Building with Ant ###
diff --git a/main/res/values/.gitignore b/main/res/values/.gitignore
index ade2b6e..891c98f 100644
--- a/main/res/values/.gitignore
+++ b/main/res/values/.gitignore
@@ -1,2 +1,3 @@
/ocde_okapi.xml
/ocpl_okapi.xml
+/keys.xml \ No newline at end of file
diff --git a/main/templates/keys.xml b/main/templates/keys.xml
new file mode 100644
index 0000000..e667df5
--- /dev/null
+++ b/main/templates/keys.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<resources>
+ <!-- Google Maps -->
+ <string name="maps_api_key" translatable="false">@maps.api.key@</string>
+
+ <!-- Opencaching.de -->
+ <string name="oc_de_okapi_consumer_key" translatable="false">@ocde.okapi.consumer.key@</string>
+ <string name="oc_de_okapi_consumer_secret" translatable="false">@ocde.okapi.consumer.secret@</string>
+
+ <!-- Opencaching.pl -->
+ <string name="oc_pl_okapi_consumer_key" translatable="false">@ocpl.okapi.consumer.key@</string>
+ <string name="oc_pl_okapi_consumer_secret" translatable="false">@ocpl.okapi.consumer.secret@</string>
+</resources>
diff --git a/main/templates/mapsapikey.xml b/main/templates/mapsapikey.xml
deleted file mode 100644
index 3655b5e..0000000
--- a/main/templates/mapsapikey.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<resources>
- <string name="maps_api_key" translatable="false">@maps.api.key@</string>
-</resources>
diff --git a/main/templates/ocde_okapi.xml b/main/templates/ocde_okapi.xml
deleted file mode 100644
index 9ca39b3..0000000
--- a/main/templates/ocde_okapi.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<resources>
- <string name="oc_de_okapi_consumer_key" translatable="false">@ocde.okapi.consumer.key@</string>
- <string name="oc_de_okapi_consumer_secret" translatable="false">@ocde.okapi.consumer.secret@</string>
-</resources>
diff --git a/main/templates/ocpl_okapi.xml b/main/templates/ocpl_okapi.xml
deleted file mode 100644
index 6903ce7..0000000
--- a/main/templates/ocpl_okapi.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<resources>
- <string name="oc_pl_okapi_consumer_key" translatable="false">@ocpl.okapi.consumer.key@</string>
- <string name="oc_pl_okapi_consumer_secret" translatable="false">@ocpl.okapi.consumer.secret@</string>
-</resources>