Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Examples/FBLPromises/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.4.1
6 changes: 6 additions & 0 deletions Examples/FBLPromises/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
objc_library(
name="all",
deps=[
"//Vendor/PromisesSwift",
"//Vendor/PromisesObjC",
])
1 change: 1 addition & 0 deletions Examples/FBLPromises/Makefile
7 changes: 7 additions & 0 deletions Examples/FBLPromises/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
project 'PodsHost/PodsHost.xcodeproj'

# Note, that this will not current work with CocoaPods as a static library
target 'ios-app' do
pod "PromisesSwift"
end

24 changes: 24 additions & 0 deletions Examples/FBLPromises/Pods.WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
new_pod_repository(
name = "rapidjson",
owner = "@dzhang",
url = "https://github.com/Tencent/rapidjson/archive/v1.1.0.zip",
podspec_url = "Vendor/PodSpecs/rapidjson-1.1.0/rapidjson.podspec.json",
# Note: that rapid json has an issue with the headermap being generated
generate_header_map = False
)

new_pod_repository(
name = "PromisesObjC",
owner = "@prodsec",
url = "https://github.com/google/promises/archive/1.2.9.zip",
podspec_url = "Vendor/PodSpecs/PromisesObjC-1.2.9/PromisesObjC.podspec.json",
generate_header_map = True,
)

new_pod_repository(
name = "PromisesSwift",
owner = "@prodsec",
url = "https://github.com/google/promises/archive/1.2.9.zip",
podspec_url = "Vendor/PodSpecs/PromisesSwift-1.2.9/PromisesSwift.podspec.json",
generate_header_map = True
)
47 changes: 47 additions & 0 deletions Examples/FBLPromises/WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_pods",
urls = ["https://note-this-is-overridden"],
)

git_repository(
name = "build_bazel_rules_apple",
remote = "https://github.com/bazelbuild/rules_apple.git",
commit = "1cdaf74e44c4c969d7ee739b3a0f11b993c49d2a",
)

load(
"@build_bazel_rules_apple//apple:repositories.bzl",
"apple_rules_dependencies",
)

git_repository(
name = "build_bazel_rules_swift",
remote = "https://github.com/bazelbuild/rules_swift.git",
commit = "d07d880dcf939e0ad98df4dd723f8516bf8a2867",
)

apple_rules_dependencies()

load(
"@build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies",
)

swift_rules_dependencies()

load(
"@build_bazel_apple_support//lib:repositories.bzl",
"apple_support_dependencies",
)

apple_support_dependencies()
load(
"@com_google_protobuf//:protobuf_deps.bzl",
"protobuf_deps",
)

protobuf_deps()

1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ build-test: pod_test build archive init-sandbox
cd Examples/ArcSplitting && make all
cd Examples/React && make all
cd Examples/SwiftSubspec && make all
cd Examples/FBLPromises && make all
# cd Examples/FBSDK && make all

build-example: EXAMPLE=Examples/PINCache.podspec.json
Expand Down