Skip to content

Commit f2df42f

Browse files
committed
Update version, stub app, fix <21 crash
defined icon drawable not exist in AOSP<21
1 parent 5a8c9a3 commit f2df42f

File tree

8 files changed

+27
-5
lines changed

8 files changed

+27
-5
lines changed

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ android {
1515
applicationId "org.duangsuse.tree"
1616
minSdkVersion 14
1717
targetSdkVersion 27
18-
versionCode 3
19-
versionName '1.2-钠'
18+
versionCode 4
19+
versionName '1.3-铱'
2020
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
2121
signingConfig signingConfigs.config
2222
}
@@ -33,7 +33,7 @@ android {
3333
}
3434
}
3535
lintOptions {
36-
disable 'MissingApplicationIcon', 'GoogleAppIndexingWarning', 'AllowBackup', 'UnusedAttribute'
36+
disable 'MissingApplicationIcon', 'GoogleAppIndexingWarning', 'AllowBackup', 'UnusedAttribute', 'UnusedResources'
3737
}
3838
productFlavors {
3939
}

app/src/main/assets/app.bshA

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
//Module selector
1+
//Module selector
2+
me.say("Hello");

app/src/main/assets/main.bsh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ import android.net.Uri;
88

99
//splash
1010

11-
//beginActivity
11+
//beginActivity
12+
me.beginActivity("app");

app/src/main/res/drawable/ic_b.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:antialias="true"
3+
android:src="@android:drawable/ic_media_play"
4+
android:tint="@color/brown" />

app/src/main/res/drawable/ic_d.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:antialias="true"
3+
android:src="@android:drawable/ic_input_add"
4+
android:tint="@color/brown" />

app/src/main/res/drawable/ic_g.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:antialias="true"
3+
android:src="@android:drawable/ic_media_pause"
4+
android:tint="@color/brown" />

app/src/main/res/drawable/ic_r.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:antialias="true"
3+
android:src="@android:drawable/btn_star"
4+
android:tint="@color/brown" />

app/src/main/res/drawable/ic_y.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:antialias="true"
3+
android:src="@android:drawable/ic_menu_upload"
4+
android:tint="@color/brown" />

0 commit comments

Comments
 (0)