working on android.

This commit is contained in:
Bryce Covert
2015-09-11 08:57:28 -07:00
parent 39d90f00c3
commit 2cfe77de08
3 changed files with 57 additions and 12 deletions

4
android/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
target
\#*#
checkouts
.nrepl-port

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="advent.core"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name">
<activity android:name=".SplashActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:name=".AndroidLauncher">
<intent-filter>
<action android:name='advent.core.MAIN'/>
<category android:name='android.intent.category.DEFAULT'/>
</intent-filter>
</activity>
</application>
</manifest>

View File

@@ -1,36 +1,50 @@
(defproject advent "0.0.1-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[com.badlogicgames.gdx/gdx "1.3.0" :use-resources true]
:dependencies [[com.badlogicgames.gdx/gdx "1.5.3"]
[com.badlogicgames.gdx/gdx-backend-lwjgl "1.5.3"]
[com.badlogicgames.gdx/gdx-box2d "1.5.3"]
[com.badlogicgames.gdx/gdx-tools "1.5.3"]
[com.badlogicgames.gdx/gdx-bullet "1.5.3"]
[com.badlogicgames.gdx/gdx-backend-android "1.3.0"]
[com.badlogicgames.gdx/gdx-box2d "1.3.0"]
[com.badlogicgames.gdx/gdx-bullet "1.3.0"]
[neko/neko "3.0.2"]
[org.clojure-android/clojure "1.6.0-RC1" :use-resources true]
[play-clj "0.3.9"]]
[neko/neko "3.2.0"]
[org.clojure-android/clojure "1.6.0-RC1"]
[org.clojure/tools.nrepl "0.2.7"]
[play-clj "0.4.5-BRYCE"]
[org.clojure/data.priority-map "0.0.5"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]]
:plugins [[lein-droid "0.4.3"]]
:profiles {:dev {:dependencies [[android/tools.nrepl "0.2.0-bigstack"]
[compliment "0.1.3"]]
:android {:aot :all-with-unused}}
:android {:aot :all
:aot-exclude-ns [cljs.core.async.macros cljs.core.impl-ioc-macros cljs.core.impl.ioc_macros]}}
:release {:android
{;; Specify the path to your private
;; keystore and the the alias of the
;; key you want to sign APKs with.
;; :keystore-path "/home/user/.android/private.keystore"
;; :key-alias "mykeyalias"
:aot :all}}}
:aot :all
:aot-exclude-ns [cljs.core.async.macros cljs.core.impl-ioc-macros cljs.core.impl.ioc_macros]}}}
:android {;; Specify the path to the Android SDK directory either
;; here or in your ~/.lein/profiles.clj file.
;; :sdk-path "/home/user/path/to/android-sdk/"
:sdk-path "/usr/local/Cellar/android-sdk/24.3.4/"
;; Uncomment this if dexer fails with OutOfMemoryException
;; :force-dex-optimize true
:force-dex-optimize true
:assets-path "../desktop/resources"
:native-libraries-paths ["libs"]
:target-version "15"
:aot-exclude-ns ["clojure.parallel" "clojure.core.reducers"]
:dex-opts ["-JXmx2048M"]}
:aot-exclude-ns ["clojure.parallel" "clojure.core.reducers" "cljs.core.async.macros" "cljs.core.impl-ioc-macros" "cljs.core.impl.ioc_macros"]
:dex-opts ["-JXmx8192M" "--no-locals" "--multi-dex"]}
:source-paths ["src/clojure" "../desktop/src-common"]
:java-source-paths ["src/java" "gen"]