[Fix] Include OneSignalConfig.androidlib meta files #655
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
Includes .meta files in OneSignalConfig.androidlib to prevent asset from being ignored
Details
Motivation
Fixes compile time errors in Android package - all files in
Packages/com.onesignal.unity.android/Editor/OneSignalConfig.androidlib/
:Scope
Affects Unity Editor 2021 versions. Reproducible in 2021.3 but I was unable to reproduce in 2022.3.10.
Unity made a change where meta files don't need to be included in plugins for newer versions:
https://forum.unity.com/threads/loadable-plugin-directory-import-behaviour-change-androidlib-bundle-framework-and-plugin.1381113/
It looks like the change does not apply to 2021 because of the compile errors, so it looks like we need to include meta files in our OneSignalConfig.androidlib for 2021 support.
Testing
Manual testing
Tested OneSignal initialization, app build with Unity 2021.3.0f1 and 2022.3.10f1 of the OneSignal example app on a emulated Pixel 4 with Android 12.
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is