Android bindings for gofeed
Add this to your gradle file
implementation("com.nononsenseapps.gofeed:gofeed-android:0.1.0")
And use in code like this
// parseBodyBytes is also available
val jsonByteArray = gofeedandroid.Gofeedandroid.parseBodyString(rssFeed)
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
./gradlew bundleReleaseAar
./gradlew publish
Then go to https://oss.sonatype.org/#stagingRepositories and close and release the repository.
Exclude commit/version to get latest version.
go get -u github.com/mmcdole/gofeed@[COMMIT/VERSION]
If you want to include the bindings in unit tests, they must run as Android instrumentation tests (emulator tests).
The bindings won't work in JVM unit tests.