Skip to content

Commit fedca3d

Browse files
committed
feat: support godot 4.2 & 4.3
2 parents d8e15c5 + 0a4695f commit fedca3d

File tree

8 files changed

+91
-6
lines changed

8 files changed

+91
-6
lines changed

android/.project

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Godot Local Notification</name>
4+
<comment>Project android created by Buildship.</comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
16+
</natures>
17+
<filteredResources>
18+
<filter>
19+
<id>1700883703541</id>
20+
<name></name>
21+
<type>30</type>
22+
<matcher>
23+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
24+
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
25+
</matcher>
26+
</filter>
27+
</filteredResources>
28+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
arguments=
2+
auto.sync=false
3+
build.scans.enabled=false
4+
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5+
connection.project.dir=
6+
eclipse.preferences.version=1
7+
gradle.user.home=
8+
java.home=/opt/homebrew/Cellar/openjdk/18/libexec/openjdk.jdk/Contents/Home
9+
jvm.arguments=
10+
offline.mode=false
11+
override.workspace.settings=true
12+
show.console.view=true
13+
show.executions.view=true

android/app/.classpath

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-18/"/>
4+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
5+
<classpathentry kind="output" path="bin/default"/>
6+
</classpath>

android/app/.project

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>app</name>
4+
<comment>Project app created by Buildship.</comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22+
</natures>
23+
<filteredResources>
24+
<filter>
25+
<id>1700883703543</id>
26+
<name></name>
27+
<type>30</type>
28+
<matcher>
29+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
30+
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31+
</matcher>
32+
</filter>
33+
</filteredResources>
34+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
connection.project.dir=..
2+
eclipse.preferences.version=1

android/app/src/main/java/vn/kyoz/godot/localnotification/LocalNotificationReceiver.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ public void onReceive(Context context, Intent intent) {
4949
}
5050

5151
Intent intent2 = new Intent(context, appClass);
52-
intent2.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
52+
intent2.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |
53+
Intent.FLAG_ACTIVITY_SINGLE_TOP |
54+
Intent.FLAG_ACTIVITY_NEW_TASK);
5355
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent2, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
5456

5557

build.env

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ export PLUGIN_NAME="local-notification"
22
export GDAP_FILE="LocalNotification.gdap"
33
export GDIP_FILE="local-notification.gdip"
44

5-
export ANDROID_TEMPLATES=("3.4" "3.5" "3.5.1" "3.5.2" "3.5.3" "4.0" "4.1" "4.2" "4.3")
6-
export IOS_TEMPLATES=("3.4" "3.5" "3.5.1" "3.5.2" "3.5.3" "4.0" "4.1" "4.2" "4.3")
5+
export ANDROID_TEMPLATES=("3.4" "3.5" "3.5.1" "3.5.2" "3.5.3" "4.0" "4.1" "4.1.3" "4.2" "4.3")
6+
export IOS_TEMPLATES=("3.4" "3.5" "3.5.1" "3.5.2" "3.5.3" "4.0" "4.1" "4.1.3" "4.2" "4.3")
77

8-
export DEFAULT_ANDROID_TEMPLATE=3.5.2
9-
export DEFAULT_IOS_TEMPLATE=3.5.2
8+
export DEFAULT_ANDROID_TEMPLATE=3.5.3
9+
export DEFAULT_IOS_TEMPLATE=3.5.3
1010

1111
export ANDROID_CACHE_DIR=".cache/android-templates"
1212
export IOS_CACHE_DIR=".cache/ios-templates"

example/godot_4/export_presets.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ custom_features=""
88
export_filter="all_resources"
99
include_filter=""
1010
exclude_filter=""
11-
export_path="../../../../../Downloads/Example.aab"
11+
export_path="../../../../../../Desktop/Example.apk"
1212
encryption_include_filters=""
1313
encryption_exclude_filters=""
1414
encrypt_pck=false

0 commit comments

Comments
 (0)