Fix Android project in template

This commit is contained in:
oakes
2014-11-06 16:37:54 -05:00
parent c195fd817f
commit f0ff37b344
3 changed files with 29 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
(defproject play-clj/lein-template "0.4.2"
(defproject play-clj/lein-template "0.4.2.1"
:description "A template for making play-clj projects"
:url "https://github.com/oakes/play-clj"
:license {:name "Public Domain"

View File

@@ -58,7 +58,7 @@
(render "AndroidLauncher.java" data)]
"android/src/clojure"
["android/AndroidManifest.xml"
(lein-droid-render "AndroidManifest.template.xml" data)]
(render "AndroidManifest.xml" data)]
["android/res/drawable-hdpi/ic_launcher.png"
(lein-droid-render "ic_launcher_hdpi.png")]
["android/res/drawable-mdpi/ic_launcher.png"

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="{{package-sanitized}}"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="{{target-sdk}}" />
<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=".{{activity}}">
<intent-filter>
<action android:name='{{package-sanitized}}.MAIN'/>
<category android:name='android.intent.category.DEFAULT'/>
</intent-filter>
</activity>
</application>
</manifest>