Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
Prepare for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
SamPersson committed Sep 10, 2012
1 parent f112d05 commit 45e4a2e
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="gr.padeler.aspellchecker"
package="se.randomdev.aspellchecker"
android:versionCode="1"
android:versionName="0.1" android:installLocation="internalOnly">
android:versionName="1.0" android:installLocation="internalOnly">

<uses-sdk android:minSdkVersion="14" />
<uses-permission android:name="android.permission.READ_USER_DICTIONARY"></uses-permission>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** Automatically generated file. DO NOT MODIFY */
package gr.padeler.aspellchecker;
package se.randomdev.aspellchecker;

public final class BuildConfig {
public final static boolean DEBUG = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* should not be modified by hand.
*/

package gr.padeler.aspellchecker;
package se.randomdev.aspellchecker;

public final class R {
public static final class array {
Expand Down
8 changes: 4 additions & 4 deletions jni/native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void log_word_list(AspellSpeller * speller, const AspellWordList *wl)
}
}

void Java_gr_padeler_aspellchecker_ASpell_destruct(JNIEnv * env, jobject _this)
void Java_se_randomdev_aspellchecker_ASpell_destruct(JNIEnv * env, jobject _this)
{
jclass cls = env->GetObjectClass(_this);
jfieldID fid = env->GetFieldID(cls, "nativePtr", "J");
Expand All @@ -40,7 +40,7 @@ void Java_gr_padeler_aspellchecker_ASpell_destruct(JNIEnv * env, jobject _this)
env->SetLongField(_this, fid, 0);
}

void Java_gr_padeler_aspellchecker_ASpell_setUserDictionary(JNIEnv * env, jobject _this, jobjectArray strings)
void Java_se_randomdev_aspellchecker_ASpell_setUserDictionary(JNIEnv * env, jobject _this, jobjectArray strings)
{
jclass cls = env->GetObjectClass(_this);
jfieldID fid = env->GetFieldID(cls, "nativePtr", "J");
Expand Down Expand Up @@ -69,7 +69,7 @@ void Java_gr_padeler_aspellchecker_ASpell_setUserDictionary(JNIEnv * env, jobjec
"NDK:ASpell User dictionary updated");
}

jboolean Java_gr_padeler_aspellchecker_ASpell_initialize(JNIEnv * env,
jboolean Java_se_randomdev_aspellchecker_ASpell_initialize(JNIEnv * env,
jobject _this,
jstring dataDirStr,
jstring localeStr)
Expand Down Expand Up @@ -126,7 +126,7 @@ jboolean Java_gr_padeler_aspellchecker_ASpell_initialize(JNIEnv * env,
return JNI_TRUE;
}

jobjectArray Java_gr_padeler_aspellchecker_ASpell_check(JNIEnv * env,
jobjectArray Java_se_randomdev_aspellchecker_ASpell_check(JNIEnv * env,
jobject _this,
jstring wordStr)
{
Expand Down
5 changes: 2 additions & 3 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="name">ASpell Swedish Spellchecker</string>
<string name="settings">ASpell Swedish Spellchecker Settings</string>
<string name="name">Aspell Swedish spell checker</string>
<string name="settings">Aspell Swedish spell checker settings</string>
<string name="subtype">Swedish</string>

</resources>
2 changes: 1 addition & 1 deletion res/xml/spellchecker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<spell-checker xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/name"
android:settingsActivity="gr.padeler.aspellchecker.ASpellCheckerActivity">
android:settingsActivity="se.randomdev.aspellchecker.ASpellCheckerActivity">
<subtype
android:label="@string/subtype"
android:subtypeLocale="sv" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
*
*/
package gr.padeler.aspellchecker;
package se.randomdev.aspellchecker;

import android.util.Log;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package gr.padeler.aspellchecker;
package se.randomdev.aspellchecker;


import se.randomdev.aspellchecker.R;
import android.os.Bundle;
import android.preference.PreferenceActivity;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
*
*/
package gr.padeler.aspellchecker;
package se.randomdev.aspellchecker;


import java.io.File;
Expand Down Expand Up @@ -51,8 +51,8 @@ public Session createSession()
// check if the data files are correctly copied from the assets.
try{
String dataDir = checkAndUpdateDataFiles();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
String lang = prefs.getString("available_dicts", "sv");
//SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
//String lang = prefs.getString("available_dicts", "sv");

return new ASpellCheckerSession(dataDir,getContentResolver());

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/**
*
*/
package gr.padeler.aspellchecker;
package se.randomdev.aspellchecker;


import se.randomdev.aspellchecker.R;
import android.os.Bundle;
import android.preference.PreferenceFragment;

Expand Down

0 comments on commit 45e4a2e

Please sign in to comment.