Skip to content

Instantly share code, notes, and snippets.

View mgrebenets's full-sized avatar
🐢

Maksym Grebenets mgrebenets

🐢
View GitHub Profile
{
Name = "ENABLE_NS_ASSERTIONS";
Type = Boolean;
DefaultValue = YES;
CommandLineArgs = {
YES = ();
NO = ("-DNS_BLOCK_ASSERTIONS=1");
};
FileTypes = (
"sourcecode.c.objc",
modify_services(
# Developer username and team ID.
username: "myemail@apple.com",
team_id: "MYTEAMID",
app_identifier: app_id["id"],
# Updated capabilities.
services: app_id["services"] || {}
)
app_ids:
- name: DemoApp
id: au.com.demo.app
services:
access_wifi: "off" # Disable Wi-Fi access.
app_group: "on"
associated_domains: "on"
push_notification: "on"
wallet: "off" # Disable Wallet access.
lane :create_app_id do
Dir["../**/Produce.yml"].each do |file|
UI.message("Processing config at path: #{file}")
config = YAML.load_file(file)
config["app_ids"].each do |app_id|
produce(
# Developer username and team ID.
username: "myemail@apple.com",
team_id: "MYTEAMID",
app_ids:
- name: DemoApp
id: au.com.demo.app
services:
access_wifi: "on"
app_group: "on"
associated_domains: "on"
push_notification: "on"
wallet: "on"
bundle exec fastlane create_app
lane :create_app do
produce(
# ...
)
end
produce(
# Developer username and team ID.
username: "myemail@apple.com",
team_id: "MYTEAMID",
# App details.
app_identifier: "my.app.id",
app_name: "My App Name",
# List services to enable for the new app ID.
Build{id=12345, buildConfigurationId=MyBuildConfigurationId, buildNumber=1234, status=SUCCESS, branch=BranchImpl(name=master, isDefault=true)}
./gradlew run --args='https://myteamcity.com MyUsername MyPassword MyBuildConfigurationId'