Follow

筆記一下把Go build成aar lib的步驟
1、首先Go的程式要設定pkg(lib)、struct名稱,並且開放Func
2、gomobile init產生gobind
3、gomobile bind --target android
4、aar移至main/libs,並設定gradle
5、MainActivity加入MethodChannel
6、import flutter/services,撰寫MethodChannel的實作

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!