You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Umnik 173e0aaf33
fixes
4 months ago
app fixes 4 months ago
go fixes 4 months ago
gradle/wrapper new code 4 months ago
.gitignore Initial commit 8 months ago
README.md README.md 4 months ago
build.gradle fixes 4 months ago
go.mod fixes 4 months ago
go.sum fixes 4 months ago
gradle.properties files added 5 months ago
gradlew files added 5 months ago
gradlew.bat files added 5 months ago
settings.gradle files added 5 months ago

README.md

Before

At least Go 1.16 is required. For detailed instructions, see gomobile wiki

Install

  1. go install golang.org/x/mobile/cmd/gomobile@latest
  2. gomobile init

Build aar

  1. mkdir -pv ./app/libs/
  2. gomobile clean
  3. go get -u golang.org/x/mobile/cmd/gomobile
  4. gomobile bind -v --target=TARGET --ldflags '-w -s' -o ./app/libs/fdroid.aar --androidapi=23 ./go/ffcore

where TARGET can be:

  • android - support arm, arm64, 386 and amd64 architectures
  • android/arm64 - support only ARM64 architecture. Recommended for modern physical devices
  • android/arm - support only ARMv7 architecture. Recommended for old physical devices
  • android/386 or android/amd64 for emulators or some rare device
  • android/386,android/amd64 for emulators or some rare device. Both libs architectures will be added in arr file

Troubleshooting

If command not found: gomobile: export PATH=$PATH:~/go/bin/