-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Mistakenly created the game in another folder, causing the project to lose synchronization.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | ||
<component name="FacetManager"> | ||
<facet type="android" name="Android"> | ||
<configuration /> | ||
</facet> | ||
</component> | ||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6"> | ||
<output url="file://$MODULE_DIR$/target/classes" /> | ||
<output-test url="file://$MODULE_DIR$/target/test-classes" /> | ||
<content url="file://$MODULE_DIR$"> | ||
<excludeFolder url="file://$MODULE_DIR$/target" /> | ||
</content> | ||
<orderEntry type="jdk" jdkName="openjdk-17" jdkType="JavaSDK" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
</component> | ||
</module> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.madmath.android" | ||
android:screenOrientation="landscape" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="19" /> | ||
<application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true"> | ||
<activity android:name="mainActivity" | ||
android:label="@string/app_name" | ||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" | ||
android:configChanges="keyboard|keyboardHidden|orientation"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
</manifest> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This file is automatically generated by Android Tools. | ||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | ||
# | ||
# This file must be checked in Version Control Systems. | ||
# | ||
# To customize properties used by the Ant build system use, | ||
# "build.properties", and override values to adapt the script to your | ||
# project structure. | ||
|
||
# Project target. | ||
target=android-11 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.madmath</groupId> | ||
<artifactId>Madmath</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>Madmath-android</artifactId> | ||
<packaging>apk</packaging> | ||
<name>main Android</name> | ||
|
||
<properties> | ||
<keystore.path>game.keystore</keystore.path> | ||
<keystore.alias>game</keystore.alias> | ||
<!-- you can pass these on the command line as -Dkeystore.password=foo etc. --> | ||
<keystore.password></keystore.password> | ||
<key.password>${keystore.password}</key.password> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.madmath</groupId> | ||
<artifactId>Madmath-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.badlogicgames.gdx</groupId> | ||
<artifactId>gdx-backend-android</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.badlogicgames.gdx</groupId> | ||
<artifactId>gdx-platform</artifactId> | ||
<classifier>natives-armeabi</classifier> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.badlogicgames.gdx</groupId> | ||
<artifactId>gdx-platform</artifactId> | ||
<classifier>natives-armeabi-v7a</classifier> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.google.android</groupId> | ||
<artifactId>android</artifactId> | ||
<version>${android.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<!-- output APK doesn't contain version number, needed for Intellij Idea --> | ||
<finalName>${project.artifactId}</finalName> | ||
|
||
<plugins> | ||
<!-- responsible for unpacking the shared libraries to the libs/ folder --> | ||
<plugin> | ||
<groupId>com.googlecode.mavennatives</groupId> | ||
<artifactId>maven-nativedependencies-plugin</artifactId> | ||
<version>0.0.7</version> | ||
<configuration> | ||
<nativesTargetDir>libs</nativesTargetDir> | ||
<separateDirs>true</separateDirs> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>prepare-package</phase> | ||
<goals> | ||
<goal>copy</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<!-- responsible for being able to compile for Android --> | ||
<plugin> | ||
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | ||
<artifactId>android-maven-plugin</artifactId> | ||
<version>${android.maven.version}</version> | ||
<configuration> | ||
<androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile> | ||
<assetsDirectory>${project.basedir}/../assets</assetsDirectory> | ||
<resourceDirectory>${project.basedir}/res</resourceDirectory> | ||
<sdk> | ||
<platform>19</platform> | ||
</sdk> | ||
<undeployBeforeDeploy>true</undeployBeforeDeploy> | ||
<dex> | ||
<jvmArguments> | ||
<jvmArgument>-Xmx1024m</jvmArgument> | ||
</jvmArguments> | ||
</dex> | ||
</configuration> | ||
<extensions>true</extensions> | ||
<executions> | ||
<execution> | ||
<id>deploy-on-install</id> | ||
<phase>install</phase> | ||
<goals> | ||
<goal>deploy</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<!-- run 'mvn package -Pandroid -Psign -Dkeystore.password=foo' to sign and align --> | ||
<profiles> | ||
<profile> | ||
<id>sign</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jarsigner-plugin</artifactId> | ||
<version>1.2</version> | ||
<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>${keystore.path}</keystore> | ||
<storepass>${keystore.password}</storepass> | ||
<keypass>${key.password}</keypass> | ||
<alias>${keystore.alias}</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> | ||
<zipalign><skip>false</skip></zipalign> | ||
<sign><debug>false</debug></sign> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>alignApk</id> | ||
<phase>package</phase> | ||
<goals><goal>zipalign</goal></goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
-optimizationpasses 5 | ||
-dontusemixedcaseclassnames | ||
-dontskipnonpubliclibraryclasses | ||
-dontpreverify | ||
-verbose | ||
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* | ||
|
||
-keep public class * extends android.app.Activity | ||
-keep public class * extends android.app.Application | ||
-keep public class * extends android.app.Service | ||
-keep public class * extends android.content.BroadcastReceiver | ||
-keep public class * extends android.content.ContentProvider | ||
-keep public class com.android.vending.licensing.ILicensingService | ||
|
||
-keepclasseswithmembernames class * { | ||
native <methods>; | ||
} | ||
|
||
-keepclasseswithmembernames class * { | ||
public <init>(android.content.Context, android.util.AttributeSet); | ||
} | ||
|
||
-keepclasseswithmembernames class * { | ||
public <init>(android.content.Context, android.util.AttributeSet, int); | ||
} | ||
|
||
-keepclassmembers enum * { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
-keep class * implements android.os.Parcelable { | ||
public static final android.os.Parcelable$Creator *; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">main</string> | ||
</resources> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.madmath.android; | ||
|
||
import com.madmath.core.main; | ||
|
||
import android.os.Bundle; | ||
|
||
import com.badlogic.gdx.backends.android.AndroidApplication; | ||
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; | ||
|
||
public class mainActivity extends AndroidApplication { | ||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration(); | ||
initialize(new main(), config); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.