Permalink
Browse files

Add a default configuration with the default applicationId.

Move AndroidLauncher to package, instead of package.android for cleaner aesthetics on the store.

Resolves #3662
  • Loading branch information...
Tom-Ski committed Dec 23, 2015
1 parent ab563c1 commit 816cc0cda01ff5260fcec39e166dcc6cf79dcc3a
@@ -278,7 +278,7 @@ public void build (ProjectBuilder builder, String outputDir, String appName, Str
project.files.add(new ProjectFile("android/res/drawable-mdpi/ic_launcher.png", false));
project.files.add(new ProjectFile("android/res/drawable-xhdpi/ic_launcher.png", false));
project.files.add(new ProjectFile("android/res/drawable-xxhdpi/ic_launcher.png", false));
project.files.add(new ProjectFile("android/src/AndroidLauncher", "android/src/" + packageDir + "/android/AndroidLauncher.java", true));
project.files.add(new ProjectFile("android/src/AndroidLauncher", "android/src/" + packageDir + "/AndroidLauncher.java", true));
project.files.add(new ProjectFile("android/AndroidManifest.xml"));
project.files.add(new ProjectFile("android/build.gradle", true));
project.files.add(new ProjectFile("android/ic_launcher-web.png", false));
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="%PACKAGE%.android"
package="%PACKAGE%"
android:versionCode="1"
android:versionName="1.0" >
@@ -12,7 +12,7 @@
android:label="@string/app_name"
android:theme="@style/GdxTheme" >
<activity
android:name="%PACKAGE%.android.AndroidLauncher"
android:name="%PACKAGE%.AndroidLauncher"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
@@ -14,6 +14,11 @@ android {
instrumentTest.setRoot('tests')
}
defaultConfig {
applicationId "%PACKAGE%"
minSdkVersion 8
targetSdkVersion %API_LEVEL%
}
}
@@ -59,7 +64,7 @@ task run(type: Exec) {
}
def adb = path + "/platform-tools/adb"
commandLine "$adb", 'shell', 'am', 'start', '-n', '%PACKAGE%.android/%PACKAGE%.android.AndroidLauncher'
commandLine "$adb", 'shell', 'am', 'start', '-n', '%PACKAGE%/%PACKAGE%.AndroidLauncher'
}
// sets up the Android Eclipse project, using the old Ant based build.
@@ -1,4 +1,4 @@
package %PACKAGE%.android;
package %PACKAGE%;
import android.os.Bundle;

0 comments on commit 816cc0c

Please sign in to comment.