2
0

Sign android release build and fix check for Apple classes in GUI.

This commit is contained in:
Maarten Billemont 2014-08-28 09:50:10 -04:00
parent 3225985e1e
commit 3ebef16007
2 changed files with 53 additions and 1 deletions

View File

@ -25,6 +25,10 @@
<artifactId>android-maven-plugin</artifactId> <artifactId>android-maven-plugin</artifactId>
<configuration> <configuration>
<zipalign>
<verbose>true</verbose>
<skip>false</skip>
</zipalign>
<sdk> <sdk>
<platform>19</platform> <platform>19</platform>
</sdk> </sdk>
@ -33,6 +37,54 @@
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<id>sign</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<executions>
<execution>
<id>signing</id>
<goals>
<goal>sign</goal>
</goals>
<phase>package</phase>
<inherited>true</inherited>
<configuration>
<archiveDirectory></archiveDirectory>
<includes>
<include>target/*.apk</include>
</includes>
<keystore>release.jks</keystore>
<storepass>${env.PASSWORD}</storepass>
<keypass>${env.PASSWORD}</keypass>
<alias>android</alias>
<arguments>
<argument>-sigalg</argument><argument>MD5withRSA</argument>
<argument>-digestalg</argument><argument>SHA1</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<sign>
<debug>false</debug>
</sign>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!-- DEPENDENCY MANAGEMENT --> <!-- DEPENDENCY MANAGEMENT -->
<dependencies> <dependencies>

View File

@ -79,7 +79,7 @@ public class GUI implements UnlockFrame.SignInCallback {
try { try {
gui = TypeUtils.newInstance( AppleGUI.class ); gui = TypeUtils.newInstance( AppleGUI.class );
} }
catch (RuntimeException e) { catch (NoClassDefFoundError e) {
gui = new GUI(); gui = new GUI();
} }
gui.open(); gui.open();