fix com.anysoftkeyboard.languagepack.example template
This commit is contained in:
parent
8214b78c5d
commit
20be3f009a
|
@ -11,12 +11,18 @@ Description:
|
|||
Repo Type:git
|
||||
Repo:https://github.com/AnySoftKeyboard/LanguagePack.git
|
||||
|
||||
Build Version:1,1,!WIP. Something wrong with verify-pack target 5eabfc,forceversion=yes,\
|
||||
Build Version:1,1,!working template 5eabfc,forceversion=yes,patch=Example.patch,\
|
||||
srclibs=AnySoftKeyboard-API@b21d8907;AnySoftKeyboardTools@73e9a09496,\
|
||||
prebuild=sed -i 's@\(android.library.reference.1=\).*@\1$$AnySoftKeyboard-API$$@' project.properties && \
|
||||
find . -type f -print0 | xargs -0 sed -i 's/change_me/example/g' && \
|
||||
mv src/com/anysoftkeyboard/languagepack/change_me src/com/anysoftkeyboard/languagepack/example && \
|
||||
sed -i 's/change_me/example/g' AndroidManifest.xml && \
|
||||
wget -O res/drawable/app_icon.png http://code.google.com/p/softkeyboard/logo?cct=1329035798 && \
|
||||
cp res/drawable/app_icon.png res/drawable-hdpi/ && \
|
||||
cp res/drawable/app_icon.png res/drawable-xhdpi/ && \
|
||||
cp res/drawable/app_icon.png StoreStuff/landscape.png && \
|
||||
cp res/drawable/app_icon.png StoreStuff/portrait.png && \
|
||||
cp res/drawable/app_icon.png StoreStuff/store_hi_res_icon.png && \
|
||||
sed -i 's@..\/AnySoftKeyboardTools@$$AnySoftKeyboardTools$$@g' custom_rules.xml && \
|
||||
sed -i 's/LanguagePack/LanguagePackExample/g' build.xml && \
|
||||
sed -i '/key/d' project.properties && rm res/raw/words_1.dict
|
||||
|
||||
Auto Update Mode:None
|
||||
|
|
|
@ -0,0 +1,85 @@
|
|||
diff --git a/res/values/strings.xml b/res/values/strings.xml
|
||||
index c4c53a1..0c8d7d7 100644
|
||||
--- a/res/values/strings.xml
|
||||
+++ b/res/values/strings.xml
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
- <string name="app_name">AnySoftKeyboard - change_me Language Pack</string>
|
||||
- <string name="keyboard_name">change_me keyboard</string>
|
||||
- <string name="dictionary_name">change_me</string>
|
||||
+ <string name="app_name">AnySoftKeyboard - example Language Pack</string>
|
||||
+ <string name="keyboard_name">example keyboard</string>
|
||||
+ <string name="dictionary_name">example</string>
|
||||
</resources>
|
||||
diff --git a/res/xml/dictionaries.xml b/res/xml/dictionaries.xml
|
||||
index 1daa3d2..e470c6d 100644
|
||||
--- a/res/xml/dictionaries.xml
|
||||
+++ b/res/xml/dictionaries.xml
|
||||
@@ -7,7 +7,7 @@
|
||||
"dictionaryResourceId" : a reference to the raw resource of the words dictionary
|
||||
"autoTextResourceId" : a reference to a common typing mistakes XML.
|
||||
-->
|
||||
- <Dictionary nameResId="@string/dictionary_name" locale="change_me" id="change_me" type="binary_resource"
|
||||
+ <Dictionary nameResId="@string/dictionary_name" locale="example" id="example" type="binary_resource"
|
||||
dictionaryResourceId="@array/words_dict_array" autoTextResourceId="@xml/autotext"
|
||||
- description="change_me"/>
|
||||
+ description="example"/>
|
||||
</Dictionaries>
|
||||
diff --git a/res/xml/keyboards.xml b/res/xml/keyboards.xml
|
||||
index 84ba491..8a3fc55 100644
|
||||
--- a/res/xml/keyboards.xml
|
||||
+++ b/res/xml/keyboards.xml
|
||||
@@ -7,6 +7,8 @@
|
||||
"iconResId" : a reference to a drawable which can be used to show a flag in the notification bar.
|
||||
"layoutResId" : a reference to a keyboard layout XML. See res/xml/qwerty.xml
|
||||
-->
|
||||
- <Keyboard nameResId="@string/keyboard_name" iconResId="change_me" layoutResId="@xml/qwerty"
|
||||
- id="change_me" defaultDictionaryLocale="change_me" description="change_me" index="1"/>
|
||||
-</Keyboards>
|
||||
\ No newline at end of file
|
||||
+ <Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
+ xmlns:ask="http://schemas.android.com/apk/res/com.anysoftkeyboard.languagepack.example"
|
||||
+ nameResId="@string/keyboard_name" iconResId="@drawable/app_icon" layoutResId="@xml/qwerty"
|
||||
+ id="example" defaultDictionaryLocale="example" description="example" index="1"/>
|
||||
+</Keyboards>
|
||||
diff --git a/src/com/anysoftkeyboard/languagepack/change_me/PackBroadcastReceiver.java b/src/com/anysoftkeyboard/languagepack/change_me/PackBroadcastReceiver.java
|
||||
deleted file mode 100644
|
||||
index 15971b1..0000000
|
||||
--- a/src/com/anysoftkeyboard/languagepack/change_me/PackBroadcastReceiver.java
|
||||
+++ /dev/null
|
||||
@@ -1,14 +0,0 @@
|
||||
-package com.anysoftkeyboard.languagepack.change_me;
|
||||
-
|
||||
-import android.content.BroadcastReceiver;
|
||||
-import android.content.Context;
|
||||
-import android.content.Intent;
|
||||
-
|
||||
-public class PackBroadcastReceiver extends BroadcastReceiver {
|
||||
-
|
||||
- @Override
|
||||
- public void onReceive(Context arg0, Intent arg1) {
|
||||
-
|
||||
- }
|
||||
-
|
||||
-}
|
||||
diff --git a/src/com/anysoftkeyboard/languagepack/example/PackBroadcastReceiver.java b/src/com/anysoftkeyboard/languagepack/example/PackBroadcastReceiver.java
|
||||
new file mode 100644
|
||||
index 0000000..789ac7f
|
||||
--- /dev/null
|
||||
+++ b/src/com/anysoftkeyboard/languagepack/example/PackBroadcastReceiver.java
|
||||
@@ -0,0 +1,14 @@
|
||||
+package com.anysoftkeyboard.languagepack.example;
|
||||
+
|
||||
+import android.content.BroadcastReceiver;
|
||||
+import android.content.Context;
|
||||
+import android.content.Intent;
|
||||
+
|
||||
+public class PackBroadcastReceiver extends BroadcastReceiver {
|
||||
+
|
||||
+ @Override
|
||||
+ public void onReceive(Context arg0, Intent arg1) {
|
||||
+
|
||||
+ }
|
||||
+
|
||||
+}
|
Loading…
Reference in a new issue