@react-native-tvos/config-tv 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/build/withTVXcodeProject.js +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,10 +68,10 @@ _Plugin parameters_:
|
|
|
68
68
|
- `tvosDeploymentTarget`: (optional string, default '15.1') Used to set the tvOS deployment target version in the Xcode project.
|
|
69
69
|
- `removeFlipperOnAndroid`: (optional boolean, default false) Used to remove the Flipper dependency from `MainApplication.kt` (or `MainApplication.java`) and `android/app/build.gradle`. This may be necessary for React Native TV 0.73 and higher, since Flipper integration is removed from these versions. If this causes issues, set the value to false, run `npx expo prebuild --clean` again, and then remove Flipper from your Android source manually. If enabled, this change will be made regardless of the setting of the `EXPO_TV` environment variable or the value of the `isTV` plugin parameter.
|
|
70
70
|
- `androidTVRequired`: (optional boolean, default false) If set, the Android manifest will be configured for Android TV only (no Android mobile support). Specifically, the "uses-feature" tag for "android.software.leanback" will be set to "required=true".
|
|
71
|
-
- `androidTVBanner`: (optional string) If set, this should be a path to an existing PNG file appropriate for an Android TV banner image. See https://developer.android.com/design/ui/tv/guides/system/tv-app-icon-guidelines#banner . The Android manifest will be modified to reference this image, and the image will be copied into Android resource drawable directories.
|
|
71
|
+
- `androidTVBanner`: (optional string) If set, this should be a path to an existing PNG file appropriate for an Android TV banner image. See https://developer.android.com/design/ui/tv/guides/system/tv-app-icon-guidelines#banner . The Android manifest will be modified to reference this image, and the image will be copied into Android resource drawable directories. **NOTE:** This does not apply to Fire TV and is instead set by the app store submission. See https://developer.amazon.com/docs/app-submission/appstore-details.html#firetvassets
|
|
72
72
|
- `androidTVIcon`: (optional string) If set, this should be a path to an existing PNG file appropriate for an Android TV icon image. See https://developer.android.com/design/ui/tv/guides/system/tv-app-icon-guidelines#launcher-icon . The Android manifest will be modified to reference this image, and the image will be copied into Android resource drawable and mipmap directories.
|
|
73
73
|
- `appleTVImages`: (optional object) If set, this is an object with the paths to images needed to construct the Apple TV icon and top shelf brand assets. The images will be used to construct a brand asset catalog in the Xcode project Image catalog, and the project updated to use the brand assets as the source for the app icons. If this property is set, all image paths must be defined and the files must exist, or an error will be thrown. The images need to be the exact sizes shown here, in order to avoid errors during Xcode compilation and on submission to the App Store or TestFlight.
|
|
74
|
-
- `icon`: (string) Path to a
|
|
74
|
+
- `icon`: (string) Path to a 1280x768 image
|
|
75
75
|
- `iconSmall`: (string) Path to a 400x240 image
|
|
76
76
|
- `iconSmall2x`: (string) Path to a 800x480 image
|
|
77
77
|
- `topShelf`: (string) Path to a 1920x720 image
|
|
@@ -38,9 +38,8 @@ function setXcodeProjectBuildSettings(_, { project, params, deploymentTarget, })
|
|
|
38
38
|
}
|
|
39
39
|
if (params.appleTVImages) {
|
|
40
40
|
// set the app icon source
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
41
|
+
buildSettings.ASSETCATALOG_COMPILER_APPICON_NAME = "TVAppIcon";
|
|
42
|
+
buildSettings.ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = "YES";
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
}
|
package/package.json
CHANGED