Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita3cfe7b

Browse files
committed
document the way to use gendex and dex.go for new GoNativeActivity.java behaviour
1 parent4a875d9 commita3cfe7b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#gendex
2+
3+
##How to run
4+
5+
From project root:
6+
7+
```console
8+
cd ../../../../cmd/fyne/internal/mobile/
9+
go run ./gendex
10+
cd ../../../../
11+
go install ./cmd/fyne
12+
```
13+
14+
It will generate the`./cmd/fyne/internal/mobile/dex.go` file
15+
that will be used in the`fyne` CLI for your next builds.

‎internal/driver/mobile/app/GoNativeActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
importandroid.widget.TextView;
2828
importandroid.widget.TextView.OnEditorActionListener;
2929

30+
// GoNativeActivity is the java implementation that helps Go map to android via the NDK.
31+
// If you modify this, you need to regenerate the `dex.go` file with the `gendex` util.
32+
// They should be located
33+
// - ./cmd/fyne/internal/mobile/dex.go
34+
// - ./cmd/fyne/internal/mobile/gendex/
3035
publicclassGoNativeActivityextendsNativeActivity {
3136
privatestaticGoNativeActivitygoNativeActivity;
3237
privatestaticfinalintFILE_OPEN_CODE =1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp