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 43cf5dc355 fixes 7 hours ago
app removed code 7 hours ago
go fixes 7 hours ago
gradle/wrapper new code 2 weeks ago
.gitignore Initial commit 4 months ago
README.md README.md 1 week ago
build.gradle removed code 7 hours ago
go.mod README.md 1 week ago
go.sum README.md 1 week ago
gradle.properties files added 4 weeks ago
gradlew files added 4 weeks ago
gradlew.bat files added 4 weeks ago
settings.gradle files added 4 weeks 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/