From 05f015094d3a2017972cfd38c1563cf2df38b6db Mon Sep 17 00:00:00 2001 From: David Black Date: Wed, 8 May 2013 12:17:33 +0100 Subject: [PATCH] new app Bushido Blocks --- metadata/com.sandeel.bushidoblocks.txt | 35 ++++++++ .../com.sandeel.bushidoblocks/swarm.patch | 79 +++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 metadata/com.sandeel.bushidoblocks.txt create mode 100644 metadata/com.sandeel.bushidoblocks/swarm.patch diff --git a/metadata/com.sandeel.bushidoblocks.txt b/metadata/com.sandeel.bushidoblocks.txt new file mode 100644 index 0000000000..bb25d1066d --- /dev/null +++ b/metadata/com.sandeel.bushidoblocks.txt @@ -0,0 +1,35 @@ +Category:Games +License:GPLv3 +Web Site: +Source Code:https://github.com/sandeel/Bushido-Blocks +Issue Tracker:https://github.com/sandeel/Bushido-Blocks/issues + +Summary:Block-matching game +Description: +Test your skills and master the way of the Samurai in this fast-paced and +addictive Bejeweled-style puzzle game! +Tap matches of three or more blocks to slice them with your katana. +The more blocks you can slice in one go, the more time you gain in a race +against the clock. +Special blocks eliminate whole rows of blocks but don't give you any extra +time, so use them wisely! + +Proprietary leaderboard and ad libraries were removed. +. + +Repo Type:git +Repo:https://github.com/sandeel/Bushido-Blocks + +Build Version:1.4,13,25c70,init=rm -rf libs/*,patch=swarm.patch,\ +srclibs=MobAdMob@2d5736,extlibs=libgdx/libgdx-0.9.7.zip,\ +subdir=bushido-blocks-android,prebuild=\ +sed -i 's@\(reference.1=\).*@\1$$MobAdMob$$@;/merger/d' project.properties && \ +printf 'source.dir=src;../bushido-blocks/src' > ant.properties,build=\ +cd libs/ && unzip libgdx-0.9.7.zip armeabi-v7a/* armeabi/* \ +gdx.jar gdx-backend-android.jar + +Auto Update Mode:None +Update Check Mode:RepoManifest +Current Version:1.4 +Current Version Code:13 + diff --git a/metadata/com.sandeel.bushidoblocks/swarm.patch b/metadata/com.sandeel.bushidoblocks/swarm.patch new file mode 100644 index 0000000000..35abded280 --- /dev/null +++ b/metadata/com.sandeel.bushidoblocks/swarm.patch @@ -0,0 +1,79 @@ +diff --git a/bushido-blocks-android/src/com/sandeel/bushidoblocks/AndroidLeaderboard.java b/bushido-blocks-android/src/com/sandeel/bushidoblocks/AndroidLeaderboard.java +index 6f70a79..73ba50f 100644 +--- a/bushido-blocks-android/src/com/sandeel/bushidoblocks/AndroidLeaderboard.java ++++ b/bushido-blocks-android/src/com/sandeel/bushidoblocks/AndroidLeaderboard.java +@@ -20,38 +20,19 @@ + package com.sandeel.bushidoblocks; + + import com.sandeel.bushidoblocks.Leaderboard; +-import com.swarmconnect.Swarm; +-import com.swarmconnect.SwarmLeaderboard; +-import com.swarmconnect.SwarmLeaderboard.GotLeaderboardCB; + + public class AndroidLeaderboard implements Leaderboard { + +- GotLeaderboardCB callback = new GotLeaderboardCB() { +- public void gotLeaderboard(SwarmLeaderboard lb) { +- +- if (lb != null) { +- +- // Save the leaderboard for later use +- service = lb; +- } +- } +- }; +- +- private SwarmLeaderboard service; + + public AndroidLeaderboard() { +- SwarmLeaderboard.getLeaderboardById(ID, callback); + } + + public void submitScore(int score) { +- if (service != null) service.submitScore(score); + } + + public void showLeaderboards() { +- if (service != null) service.showLeaderboard(); + } + + public void showDash() { +- Swarm.showDashboard(); + } + } +diff --git a/bushido-blocks-android/src/com/sandeel/bushidoblocks/MainActivity.java b/bushido-blocks-android/src/com/sandeel/bushidoblocks/MainActivity.java +index 12e4392..c5d735c 100644 +--- a/bushido-blocks-android/src/com/sandeel/bushidoblocks/MainActivity.java ++++ b/bushido-blocks-android/src/com/sandeel/bushidoblocks/MainActivity.java +@@ -30,7 +30,6 @@ import com.google.ads.AdRequest; + import com.google.ads.AdSize; + import com.google.ads.AdView; + import com.sandeel.bushidoblocks.BushidoBlocks; +-import com.swarmconnect.Swarm; + + public class MainActivity extends AndroidApplication { + +@@ -39,9 +38,6 @@ public class MainActivity extends AndroidApplication { + + super.onCreate(savedInstanceState); + +- Swarm.setActive(this); +- Swarm.init(this, ID, "KEY"); +- + AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration(); + cfg.useGL20 = true; + cfg.useAccelerometer = false; +@@ -88,11 +84,9 @@ public class MainActivity extends AndroidApplication { + + public void onResume() { + super.onResume(); +- Swarm.setActive(this); + } + + public void onPause() { + super.onPause(); +- Swarm.setInactive(this); + } +-} +\ No newline at end of file ++}