Skip to content

Commit 161122c

Browse files
committed
v2.4.0
1 parent 963ff26 commit 161122c

File tree

10 files changed

+57
-14
lines changed

10 files changed

+57
-14
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ android {
99
defaultConfig {
1010
minSdk = 24
1111
targetSdk = 35
12-
versionCode = 11
13-
versionName = "2.3.1"
12+
versionCode = 12
13+
versionName = "2.4.0"
1414
proguardFiles += 'proguard-rules.pro'
1515
multiDexEnabled = false
1616
}

app/src/main/AndroidManifest.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<application
88
android:icon="@mipmap/ic_launcher"
9-
android:label="BenesseExtension Tester">
9+
android:label="@string/app_name">
1010
<activity
1111
android:name=".Tester"
1212
android:exported="true"
@@ -16,6 +16,19 @@
1616
<category android:name="android.intent.category.DEFAULT" />
1717
<category android:name="android.intent.category.LAUNCHER" />
1818
</intent-filter>
19+
<meta-data
20+
android:name="android.app.shortcuts"
21+
android:resource="@xml/shortcuts" />
22+
</activity>
23+
24+
<activity
25+
android:name=".About"
26+
android:exported="true"
27+
android:label="@string/about"
28+
android:launchMode="singleInstance">
29+
<intent-filter>
30+
<action android:name="android.intent.action.VIEW" />
31+
</intent-filter>
1932
</activity>
2033

2134
</application>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package me.s1204.benesse.touch.test;
2+
3+
import android.app.Activity;
4+
import android.os.Bundle;
5+
6+
public class About extends Activity {
7+
@Override
8+
public void onCreate(Bundle savedInstanceState) {
9+
super.onCreate(savedInstanceState);
10+
setContentView(R.layout.about);
11+
}
12+
@Override
13+
@Deprecated
14+
public void onBackPressed() {
15+
finish();
16+
}
17+
}

app/src/main/java/me/s1204/benesse/touch/test/Tester.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import androidx.annotation.NonNull;
1919

20-
/** @noinspection CallToPrintStackTrace*/
2120
public class Tester extends Activity {
2221

2322
private static final String CT3 = "TAB-A03-BR3";
@@ -36,20 +35,17 @@ private void makeText(String msg) {
3635
Toast.makeText(this, msg, Toast.LENGTH_LONG).show();
3736
}
3837

39-
private void noClassFound(@NonNull NoClassDefFoundError e) {
40-
e.printStackTrace();
38+
private void noClassFound(@NonNull NoClassDefFoundError ignored) {
4139
makeText("BenesseExtension が存在しません");
4240
finishAndRemoveTask();
4341
}
4442

45-
private void cannotExec(@NonNull SecurityException e) {
46-
e.printStackTrace();
43+
private void cannotExec(@NonNull SecurityException ignored) {
4744
makeText("関数の実行に失敗しました");
4845
//backHome();
4946
}
5047

51-
private void noSuchFunc(@NonNull NoSuchMethodError e) {
52-
e.printStackTrace();
48+
private void noSuchFunc(@NonNull NoSuchMethodError ignored) {
5349
makeText("関数が存在しません");
5450
//backHome();
5551
}

app/src/main/res/values/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3+
<string name="app_name">BenesseExtension Tester</string>
4+
<string name="about">About BenesseExtension</string>
5+
<string name="shortcut_label">詳細</string>
36
<string-array name="get_int">
47
<item>bc:compatscreen</item>
58
<item>bc:nightmode:active</item>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
3+
<shortcut
4+
android:enabled="true"
5+
android:icon="@android:drawable/ic_menu_search"
6+
android:shortcutId="about"
7+
android:shortcutShortLabel="@string/shortcut_label">
8+
9+
<intent
10+
android:action="android.intent.action.VIEW"
11+
android:targetClass="me.s1204.benesse.touch.test.About"
12+
android:targetPackage="me.s1204.benesse.touch.test" />
13+
14+
</shortcut>
15+
</shortcuts>

gradle/wrapper/gradle-wrapper.jar

122 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=7a00d51fb93147819aab76024feece20b6b84e420694101f276be952e08bef03
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
54
networkTimeout=10000
65
validateDistributionUrl=true
76
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginManagement {
44
mavenCentral()
55
}
66
plugins {
7-
id 'com.android.application' version '8.7.3' apply false
7+
id 'com.android.application' version '8.9.0' apply false
88
}
99
}
1010
dependencyResolutionManagement {

0 commit comments

Comments
 (0)