'. '

GooglePlay

From APIDesign

Revision as of 04:53, 26 July 2014 by JaroslavTulach (Talk | contribs)
Jump to: navigation, search

Today I decided to publish my MineSweeper on Google Play store. Here are some notes, for me and others who would consider publishing DukeScript app there:

The repository snapshot used: http://source.apidesign.org/hg/html~demo/rev/fce7972a0078

diff -r fce7972a0078 minesweeper/pom.xml
--- a/minesweeper/pom.xml       Fri Jul 25 21:20:27 2014 +0200
+++ b/minesweeper/pom.xml       Fri Jul 25 22:45:00 2014 +0200
@@ -349,7 +349,10 @@
                           <resourceDirectory>target/res</resourceDirectory>
                           <classifier>apk</classifier>
                           <attachJar>false</attachJar>
-                          <apkDebug>debug</apkDebug>
+                          <release>true</release>
+                          <sign>
+                            <debug>false</debug>
+                          </sign>
                           <assetsDirectory>src/main/webapp</assetsDirectory>
                           <sdk>
                               <platform>19</platform>

After applying the patch following commands were executed:

$ cd minesweeper
$ mvn clean install -Pdlvkbrwsr

Here I had to use patched version of android Maven plugin, to make sure mp3 remain uncompressed: https://github.com/jtulach/maven-android-plugin/commit/43f7ace88fe42e5bd7243b2743403300f21fc627

$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1  target/mine*apk dlvkbrwsr
$ sdk/tools/zipalign -f -v 4  ~/minesweeper-2.0.apk

Once available, the application should be at https://play.google.com/store/apps/details?id=org.apidesign.demo.minesweeper

Personal tools
buy