mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-04-04 12:42:16 +00:00
Playground codesign
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
submodules/**/.build/*
|
||||
swiftgram-scripts
|
||||
Swiftgram/Playground/custom_bazel_path.bzl
|
||||
Swiftgram/Playground/codesigning
|
||||
buildServer.json
|
||||
|
||||
fastlane/README.md
|
||||
|
||||
@@ -1,14 +1,30 @@
|
||||
load("@bazel_skylib//rules:common_settings.bzl",
|
||||
"bool_flag",
|
||||
)
|
||||
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_application")
|
||||
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
||||
load(
|
||||
"@rules_xcodeproj//xcodeproj:defs.bzl",
|
||||
"top_level_target",
|
||||
"top_level_targets",
|
||||
"xcodeproj",
|
||||
)
|
||||
load(
|
||||
"@build_configuration//:variables.bzl", "telegram_bazel_path"
|
||||
)
|
||||
|
||||
bool_flag(
|
||||
name = "disableProvisioningProfiles",
|
||||
build_setting_default = False,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "disableProvisioningProfilesSetting",
|
||||
flag_values = {
|
||||
":disableProvisioningProfiles": "True",
|
||||
},
|
||||
)
|
||||
|
||||
objc_library(
|
||||
name = "PlaygroundMain",
|
||||
srcs = [
|
||||
@@ -37,11 +53,15 @@ swift_library(
|
||||
|
||||
ios_application(
|
||||
name = "Playground",
|
||||
bundle_id = "app.swiftgram.playground",
|
||||
bundle_id = "app.swiftgram.ios.Playground",
|
||||
families = [
|
||||
"iphone",
|
||||
"ipad",
|
||||
],
|
||||
provisioning_profile = select({
|
||||
":disableProvisioningProfilesSetting": None,
|
||||
"//conditions:default": "codesigning/Playground.mobileprovision",
|
||||
}),
|
||||
infoplists = ["Resources/Info.plist"],
|
||||
minimum_os_version = "14.0",
|
||||
visibility = ["//visibility:public"],
|
||||
@@ -58,7 +78,10 @@ xcodeproj(
|
||||
build_mode = "bazel",
|
||||
project_name = "Playground",
|
||||
tags = ["manual"],
|
||||
top_level_targets = [
|
||||
":Playground",
|
||||
],
|
||||
top_level_targets = top_level_targets(
|
||||
labels = [
|
||||
":Playground",
|
||||
],
|
||||
target_environments = ["device", "simulator"],
|
||||
),
|
||||
)
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
Small app to quickly iterate on components testing without building an entire messenger.
|
||||
|
||||
## (Optional) Setup Codesigning
|
||||
|
||||
Create simple `codesigning/Playground.mobileprovision`. It is only required for non-simulator builds and can be skipped with `--disableProvisioningProfiles`.
|
||||
|
||||
## Generate Xcode project
|
||||
|
||||
Same as main project described in [../../Readme.md](../../Readme.md), but with `--target="Swiftgram/Playground"` parameter.
|
||||
|
||||
Reference in New Issue
Block a user