-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native plugin for Android #3
Comments
I did a quick test on this, and there are multiple issues with gradle build.
These are probably due to AndroidManifest or resource files in built aar file. Or I built aar file from Cardboard SDK wrong. |
My Result so far: For Build from IntelliJ IDEA/Android Studio (all in sdk folder):
This maybe correct or incorrect, because I can't confirm if it works in Unity. For usage in Unity:
This is the aar file I built. |
After thousands of errors and exceptions, finally get it to a minor working state: This is the aar plugin, except of removing Following things must be done in Unity, I don't like it but this is the current states.
This storage situation is terrible in my opinion, because sooner or later Google Play will say all apps must target Android 10, and this has to be changed. https://developer.android.com/training/data-storage#scoped-storage |
How much of these issues are related to using their library for QR code scanning, and could that be alleviated by switching to use https://github.com/micjahn/ZXing.Net ? |
This shouldn't be much issue using play service for qr code scanning, there are other reasons that I want to prevent using external libraries. There are a lot of third party assets/plugins using Google Support packages, like facebook SDK and firebase SDK, and they use actual aar files in Plugins folder instead of using dependency in gradle. I had a lot of troubles trying to get them work together, even with the "Jar Resolver" plugin. If this SDK requires additional google support librarys it will only add pain. But there aren't much I can do for now. About qr code scanning, these parts are used in android library, so even I switch to ZXing, it would be java implementation of ZXing instead of ZXing.Net. It is possible but I don't think I'll do that for now. |
A fork is created from Google Cardboard. https://github.com/mobfishgmbh/cardboard I need proper way to track that much changes from source code. |
|
Merged to master and released. |
Description
iOS plugin already works in the project, native methods can be called. We need the same for Android.
The text was updated successfully, but these errors were encountered: