-
Notifications
You must be signed in to change notification settings - Fork 167
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
Add support for AppleTV #3174
Add support for AppleTV #3174
Conversation
return; | ||
case BuildTarget.iOS: | ||
case BuildTarget.tvOS: | ||
UpdateiOSFrameworks(false, false, report.summary.platform); |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a false negative - we won't get into this case if report
is null
.
UpdateiOSFrameworks( | ||
enableForDevice: PlayerSettings.iOS.sdkVersion == iOSSdkVersion.DeviceSDK, | ||
enableForSimulator: PlayerSettings.iOS.sdkVersion == iOSSdkVersion.SimulatorSDK); | ||
UpdateiOSFrameworks(enableForDevice, enableForSimulator, report.summary.platform); |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
False negative again - if report
is null, we would have returned from the method.
isExplicitlyReferenced: 0 | ||
validateReferences: 1 | ||
platformData: | ||
- first: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is actually important even though it's kind of difficult to review - it indicates that the tvOS wrappers are disabled on all platforms. This is because they're enabled on build by the logic in UnityWeaver.cs. This is pretty similar to what we're doing with the iOS wrappers.
return; | ||
case BuildTarget.iOS: | ||
case BuildTarget.tvOS: | ||
UpdateiOSFrameworks(false, false, report.summary.platform); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a false negative - we won't get into this case if report
is null
.
|
||
UpdateiOSFrameworks( | ||
enableForDevice: false, | ||
enableForSimulator: false); | ||
} | ||
|
||
public void OnPreprocessBuild(BuildReport report) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly to iOS, we need to include the correct framework depending on the target we're building.
UpdateiOSFrameworks( | ||
enableForDevice: PlayerSettings.iOS.sdkVersion == iOSSdkVersion.DeviceSDK, | ||
enableForSimulator: PlayerSettings.iOS.sdkVersion == iOSSdkVersion.SimulatorSDK); | ||
UpdateiOSFrameworks(enableForDevice, enableForSimulator, report.summary.platform); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
False negative again - if report
is null, we would have returned from the method.
@@ -109,7 +109,7 @@ | |||
</None> | |||
</ItemGroup> | |||
|
|||
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND '$(UseRealmNupkgsWithVersion)' == ''"> | |||
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND '$(UseRealmNupkgsWithVersion)' == '' AND '$(RealmTestsStandaloneExe)' == 'true'"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this to prevent msbuild from complaining when we're building the iOS/tvOS tests without having built the macOS wrappers.
Description
Fixes #3161
TODO