-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from woshimaliang/master
Add **XCFramework** support to PodToBUILD
- Loading branch information
Showing
18 changed files
with
189 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "AmazonIVSPlayer", | ||
"version": "1.8.1", | ||
"summary": "Amazon AWS Interactive Video Service Player", | ||
"homepage": "https://aws.amazon.com/ivs/", | ||
"license": { | ||
"type": "Custom", | ||
"text": "https://player.live-video.net/LICENSE.txt" | ||
}, | ||
"authors": "Amazon.com, Inc.", | ||
"social_media_url": "https://twitter.com/awscloud", | ||
"platforms": { | ||
"ios": "10.0" | ||
}, | ||
"source": { | ||
"http": "https://player.live-video.net/1.8.1/AmazonIVSPlayer.xcframework.zip", | ||
"type": "zip", | ||
}, | ||
"vendored_frameworks": "AmazonIVSPlayer.xcframework" | ||
} |
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,29 @@ | ||
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_application") | ||
load("@rules_cc//cc:defs.bzl", "objc_library") | ||
|
||
# This is needed for implicit entitlement rules created for | ||
# files. | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
ios_application( | ||
name = "ios-app", | ||
bundle_id = "com.lma", | ||
families = ["iphone"], | ||
infoplists = ["Info.plist"], | ||
visibility = ["//visibility:public"], | ||
deps = ["ios-app-bin"], | ||
minimum_os_version = "9.3" | ||
) | ||
|
||
objc_library( | ||
name = "ios-app-bin", | ||
srcs = [ | ||
"main.m", | ||
], | ||
enable_modules = True, | ||
deps = [ | ||
"//Vendor/AmazonIVSPlayer:AmazonIVSPlayer", | ||
], | ||
sdk_frameworks = ["UIKit", "CoreGraphics"] | ||
) | ||
|
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,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>ios-app</string> | ||
<key>CFBundleExecutable</key> | ||
<string>ios-app</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.lma</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>ios-app</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
</dict> | ||
</plist> |
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 @@ | ||
../Example.Makefile |
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,7 @@ | ||
new_pod_repository( | ||
name = "AmazonIVSPlayer", | ||
url = "https://player.live-video.net/1.8.1/AmazonIVSPlayer.xcframework.zip", | ||
podspec_url = "AmazonIVSPlayer.podspec.json", | ||
is_dynamic_framework = True, # AmazonIVSPlayer is dynamic XCFramework | ||
is_xcframework = True, | ||
) |
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,43 @@ | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
name = "rules_pods", | ||
urls = ["https://note-this-is-overridden"], | ||
) | ||
|
||
load("@rules_pods//BazelExtensions:workspace.bzl", "new_pod_repository") | ||
|
||
http_archive( | ||
name = "build_bazel_rules_apple", | ||
sha256 = "12865e5944f09d16364aa78050366aca9dc35a32a018fa35f5950238b08bf744", | ||
url = "https://github.com/bazelbuild/rules_apple/releases/download/0.34.2/rules_apple.0.34.2.tar.gz", | ||
) | ||
|
||
load( | ||
"@build_bazel_rules_apple//apple:repositories.bzl", | ||
"apple_rules_dependencies", | ||
) | ||
|
||
apple_rules_dependencies() | ||
|
||
load( | ||
"@build_bazel_apple_support//lib:repositories.bzl", | ||
"apple_support_dependencies", | ||
) | ||
|
||
apple_support_dependencies() | ||
|
||
load( | ||
"@build_bazel_rules_swift//swift:repositories.bzl", | ||
"swift_rules_dependencies", | ||
) | ||
|
||
swift_rules_dependencies() | ||
|
||
|
||
load( | ||
"@build_bazel_rules_swift//swift:extras.bzl", | ||
"swift_rules_extra_dependencies", | ||
) | ||
|
||
swift_rules_extra_dependencies() |
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,9 @@ | ||
#import <AmazonIVSPlayer/AmazonIVSPlayer.h> | ||
|
||
int main(int argc, char * argv[]) { | ||
|
||
IVSPlayer *obj = [[IVSPlayer alloc] init]; | ||
NSLog(@"%@", obj); | ||
|
||
return 0; | ||
} |
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
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
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
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
Oops, something went wrong.