diff --git a/metadata/com.seb.SLWP.txt b/metadata/com.seb.SLWP.txt new file mode 100644 index 0000000000..7930b0c80c --- /dev/null +++ b/metadata/com.seb.SLWP.txt @@ -0,0 +1,17 @@ +Category:Wallpaper +License:GPL/Artistic +Web Site:http://code.google.com/p/earth-live-wallpaper/ +Source Code:http://code.google.com/p/earth-live-wallpaper/source/checkout +Issue Tracker:http://code.google.com/p/earth-live-wallpaper/issues/list + +Summary:Live wallpaper with rotating planets +Description: +Live wallpaper showing photorealistic and daytime-synchronized +images of Earth and other planets flying thru space. +. + +Repo Type:git-svn +# Note the starting space in a subdir name +Repo:http://earth-live-wallpaper.googlecode.com/svn/trunk/ earth-live-wallpaper/SLWP + +Build Version:1.4,60,61,target=android-9,patch=scoping-fix.patch;handle-no-market.patch;fix-appname.patch;button-name.patch diff --git a/metadata/com.seb.SLWP/button-name.patch b/metadata/com.seb.SLWP/button-name.patch new file mode 100644 index 0000000000..aa7241be16 --- /dev/null +++ b/metadata/com.seb.SLWP/button-name.patch @@ -0,0 +1,15 @@ +Use consistent capitalization on button name. + +diff --git a/res/layout/prefliste.xml b/res/layout/prefliste.xml +index c503322..2161049 100644 +--- a/res/layout/prefliste.xml ++++ b/res/layout/prefliste.xml +@@ -2,7 +2,7 @@ + +- ++ + + + diff --git a/metadata/com.seb.SLWP/fix-appname.patch b/metadata/com.seb.SLWP/fix-appname.patch new file mode 100644 index 0000000000..4bd929c264 --- /dev/null +++ b/metadata/com.seb.SLWP/fix-appname.patch @@ -0,0 +1,39 @@ +Use consistent appname which is used on website: http://code.google.com/p/earth-live-wallpaper/ + +diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml +index a3f9b91..5c89079 100644 +--- a/res/values-es/strings.xml ++++ b/res/values-es/strings.xml +@@ -1,7 +1,6 @@ + + + Hello World, SLWP! +- EarthRot + rotaciĆ³n Globe (OpenGL VBO) + velocidad + Elija la velocidad de rotaciĆ³n de la Tierra +diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml +index 7d1e443..32d857c 100644 +--- a/res/values-fr/strings.xml ++++ b/res/values-fr/strings.xml +@@ -1,7 +1,6 @@ + + + Hello World, SLWP! +- EarthRot + Globe terrestre rotatif (Opengl VBO) + Vitesse de rotation + Choisissez la vitesse de rotation du globe +diff --git a/res/values/strings.xml b/res/values/strings.xml +index 501db7e..99d20aa 100644 +--- a/res/values/strings.xml ++++ b/res/values/strings.xml +@@ -1,7 +1,7 @@ + + + Hello World, SLWP! +- EarthRot ++ Earth Live Wallpaper + Rotating earth globe (Opengl VBO) + + diff --git a/metadata/com.seb.SLWP/handle-no-market.patch b/metadata/com.seb.SLWP/handle-no-market.patch new file mode 100644 index 0000000000..b2d5614d71 --- /dev/null +++ b/metadata/com.seb.SLWP/handle-no-market.patch @@ -0,0 +1,23 @@ +diff --git a/src/com/seb/SLWP/Prefs.java b/src/com/seb/SLWP/Prefs.java +index 900ff3d..9a1691f 100755 +--- a/src/com/seb/SLWP/Prefs.java ++++ b/src/com/seb/SLWP/Prefs.java +@@ -75,11 +75,17 @@ public class Prefs extends PreferenceActivity implements + bg.setOnPreferenceChangeListener(this); + initMapList(); + Button bt = (Button) findViewById(R.id.bt_donate); ++ final PreferenceActivity myact = this; + bt.setOnClickListener(new OnClickListener() { + @Override + public void onClick(View v) { +- startActivity(new Intent(Intent.ACTION_VIEW, Uri ++ try { ++ startActivity(new Intent(Intent.ACTION_VIEW, Uri + .parse("market://search?q=pub:unixseb"))); ++ } catch (Exception e) { ++ Log.e("SLWP", "Cannot open 'market:' link", e); ++ Toast.makeText(myact, "Cannot launch Market", Toast.LENGTH_SHORT).show(); ++ } + } + }); + Button bth = (Button) findViewById(R.id.bt_help); diff --git a/metadata/com.seb.SLWP/scoping-fix.patch b/metadata/com.seb.SLWP/scoping-fix.patch new file mode 100644 index 0000000000..83fac005d5 --- /dev/null +++ b/metadata/com.seb.SLWP/scoping-fix.patch @@ -0,0 +1,13 @@ +diff --git a/ earth-live-wallpaper/SLWP/src/com/seb/SLWP/SLWP.java b/ earth-live-wallpaper/SLWP/src/com/seb/SLWP/SLWP.java +index d94d995..ca46e26 100644 +--- a/src/com/seb/SLWP/SLWP.java ++++ b/src/com/seb/SLWP/SLWP.java +@@ -590,7 +590,7 @@ public class SLWP extends GLWallpaperService implements + return mGle; + } + +- class GlEngine extends GLEngine { ++ class GlEngine extends GLWallpaperService.GLEngine { + + private static final float TOUCH_SCALE_FACTOR = 1E-3f; + private float mPreviousX = 0.0f;