-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s| | |
# optional - use expanded license entry instead: | ||
# s.license = { :type => "MIT", :file => "LICENSE" } | ||
s.authors = { "Your Name" => "[email protected]" } | ||
s.platforms = { :ios => "12.0" } | ||
s.platforms = { :ios => "12.0", :tvos => "12.0" } | ||
s.source = { :git => "https://github.com/shopify/react-native-skia/react-native-skia.git", :tag => "#{s.version}" } | ||
|
||
s.requires_arc = true | ||
|
@@ -38,6 +38,14 @@ Pod::Spec.new do |s| | |
'libs/ios/libskunicode.xcframework', | ||
] | ||
|
||
s.tvos.vendored_frameworks = [ | ||
'libs/ios/libskia.xcframework', | ||
'libs/ios/libsvg.xcframework', | ||
'libs/ios/libskshaper.xcframework', | ||
'libs/ios/libskparagraph.xcframework', | ||
'libs/ios/libskunicode.xcframework', | ||
] | ||
|
||
# All iOS cpp/h files | ||
s.source_files = [ | ||
"ios/**/*.{h,c,cc,cpp,m,mm,swift}", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { configurations } from "./skia-configuration"; | ||
import { executeCmd } from "./utils"; | ||
|
||
const configuration = configurations.tvos; | ||
|
||
console.log("Building skia for tvOS..."); | ||
let command = ""; | ||
|
||
Object.keys(configuration.targets).forEach((targetKey) => { | ||
command += | ||
(command !== "" ? " && " : "") + | ||
`yarn ts-node ./scripts/build-skia.ts tvos ${targetKey}`; | ||
}); | ||
|
||
executeCmd(command, "tvOS", () => { | ||
console.log(`Done building skia for tvOS.`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters