File tree 8 files changed +9
-18
lines changed
java/magicnut/android/godotreviewplugin
godot-lib.3.2.3.stable.release
godot-lib.3.3.stable.release
8 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,4 @@ gradle/wrapper/gradle-wrapper.properties
18
18
gradlew.bat
19
19
gradlew
20
20
godot-lib.3.2.3.stable.release /build /
21
+ godot-lib.3.3.stable.release /build /.transforms /
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
2
2
3
3
android {
4
4
compileSdkVersion 29
5
- buildToolsVersion " 30.0.0 "
5
+ buildToolsVersion " 30.0.2 "
6
6
7
7
defaultConfig {
8
8
minSdkVersion 21
@@ -33,5 +33,5 @@ dependencies {
33
33
androidTestImplementation ' androidx.test.ext:junit:1.1.2'
34
34
androidTestImplementation ' androidx.test.espresso:espresso-core:3.3.0'
35
35
implementation ' com.google.android.play:core:1.8.0'
36
- compileOnly project(" :godot-lib.3.2. 3.stable.release" )
36
+ compileOnly project(" :godot-lib.3.3.stable.release" )
37
37
}
Original file line number Diff line number Diff line change 6
6
android : name =" org.godotengine.plugin.v1.ReviewPlugin"
7
7
android : value =" magicnut.android.godotreviewplugin.ReviewPlugin" />
8
8
</application >
9
- /
10
9
</manifest >
Original file line number Diff line number Diff line change 11
11
import org .godotengine .godot .Godot ;
12
12
import org .godotengine .godot .plugin .GodotPlugin ;
13
13
import org .godotengine .godot .plugin .SignalInfo ;
14
+ import org .godotengine .godot .plugin .UsedByGodot ;
14
15
15
16
import java .util .Arrays ;
16
17
import java .util .List ;
@@ -30,7 +31,7 @@ public class ReviewPlugin extends GodotPlugin {
30
31
*/
31
32
public ReviewPlugin (Godot godot ) {
32
33
super (godot );
33
- activity = godot ;
34
+ activity = godot . getActivity () ;
34
35
}
35
36
36
37
@ NonNull
@@ -39,17 +40,6 @@ public String getPluginName() {
39
40
return PLUGIN_NAME ;
40
41
}
41
42
42
- /**
43
- * Return all the method names as list that can be called from godot side.
44
- *
45
- * @return
46
- */
47
- @ NonNull
48
- @ Override
49
- public List <String > getPluginMethods () {
50
- return Arrays .asList ("startInAppReview" );
51
- }
52
-
53
43
/**
54
44
* A set of all signals the plugin can emit.
55
45
*
@@ -67,6 +57,7 @@ public Set<SignalInfo> getPluginSignals() {
67
57
return signals ;
68
58
}
69
59
60
+ @ UsedByGodot
70
61
public void startInAppReview () {
71
62
activity .runOnUiThread (() -> {
72
63
ReviewManager manager = ReviewManagerFactory .create (activity );
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ configurations. maybeCreate(" default" )
2
+ artifacts. add(" default" , file(' godot-lib.3.3.stable.release.aar' ))
Original file line number Diff line number Diff line change 1
- include ' :godot-lib.3.2. 3.stable.release'
1
+ include ' :godot-lib.3.3.stable.release'
2
2
include ' :GodotReviewPlugin'
3
3
rootProject. name = " GodotInAppReviewPlugin"
You can’t perform that action at this time.
0 commit comments