fix: Add build script and fix manifest
- Add build-apk.sh for easy compilation - Simplify AndroidManifest.xml - Fix themes.xml to use basic Android themes - Enable BuildConfig - Add okhttp-dnsoverhttps dependency
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="PACKAGE"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<application android:label="@string/app_name" ICON>
|
||||
<activity android:name="ACTIVITY_ENTRY_NAME"
|
||||
android:label="@string/app_name">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us -->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="PACKAGE.tests"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<!-- We add an application tag here just so that we can indicate that
|
||||
this package needs to link against the android.test library,
|
||||
which is needed when building test cases. -->
|
||||
<application>
|
||||
<uses-library android:name="android.test.runner" />
|
||||
</application>
|
||||
<!--
|
||||
This declares that this application uses the instrumentation test runner targeting
|
||||
the package of PACKAGE. To run the tests use the command:
|
||||
"adb shell am instrument -w PACKAGE.tests/android.test.InstrumentationTestRunner"
|
||||
-->
|
||||
<instrumentation android:name="android.test.InstrumentationTestRunner"
|
||||
android:targetPackage="PACKAGE"
|
||||
android:label="Tests for PACKAGE"/>
|
||||
</manifest>
|
||||
14639
android-sdk/platforms/android-34/templates/NOTICE.txt
Normal file
14639
android-sdk/platforms/android-34/templates/NOTICE.txt
Normal file
File diff suppressed because it is too large
Load Diff
BIN
android-sdk/platforms/android-34/templates/ic_launcher_hdpi.png
Normal file
BIN
android-sdk/platforms/android-34/templates/ic_launcher_hdpi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
BIN
android-sdk/platforms/android-34/templates/ic_launcher_ldpi.png
Normal file
BIN
android-sdk/platforms/android-34/templates/ic_launcher_ldpi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
BIN
android-sdk/platforms/android-34/templates/ic_launcher_mdpi.png
Normal file
BIN
android-sdk/platforms/android-34/templates/ic_launcher_mdpi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
BIN
android-sdk/platforms/android-34/templates/ic_launcher_xhdpi.png
Normal file
BIN
android-sdk/platforms/android-34/templates/ic_launcher_xhdpi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,15 @@
|
||||
package PACKAGE;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class ACTIVITY_CLASS_NAME extends Activity
|
||||
{
|
||||
/** Called when the activity is first created. */
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState)
|
||||
{
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.main);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package PACKAGE;
|
||||
|
||||
import android.test.ActivityInstrumentationTestCase2;
|
||||
|
||||
/**
|
||||
* This is a simple framework for a test of an Application. See
|
||||
* {@link android.test.ApplicationTestCase ApplicationTestCase} for more information on
|
||||
* how to write and extend Application tests.
|
||||
* <p/>
|
||||
* To run this test, you can type:
|
||||
* adb shell am instrument -w \
|
||||
* -e class ACTIVITY_FQ_NAME \
|
||||
* PACKAGE.tests/android.test.InstrumentationTestRunner
|
||||
*/
|
||||
public class ACTIVITY_CLASS_NAME extends ActivityInstrumentationTestCase2<ACTIVITY_TESTED_CLASS_NAME> {
|
||||
|
||||
public ACTIVITY_CLASS_NAME() {
|
||||
super("PACKAGE", ACTIVITY_TESTED_CLASS_NAME.class);
|
||||
}
|
||||
|
||||
}
|
||||
13
android-sdk/platforms/android-34/templates/layout.template
Normal file
13
android-sdk/platforms/android-34/templates/layout.template
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Hello World, ACTIVITY_ENTRY_NAME"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">ACTIVITY_ENTRY_NAME</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user