This file contains hidden or 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
| #!/bin/sh | |
| # Check for arguments | |
| if [ $# -eq 0 ]; then | |
| echo "No arguments provided. First argument has to be version, e.g. '1.8.1'" | |
| exit 1 | |
| fi | |
| # 1. Get params | |
| NEW_VERSION=$1 |
This file contains hidden or 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
| // swift-tools-version:5.5 | |
| // The swift-tools-version declares the minimum version of Swift required to build this package. | |
| import PackageDescription | |
| let version = "1.0.0" | |
| let moduleName = "NetworkModule" | |
| let checksum = "8f42f67a0665798e1c4e149c73a36fb9dddc062bc90e3b4e077ea571613ddda1" | |
| let package = Package( |
This file contains hidden or 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
| #!/bin/sh | |
| # Check for arguments | |
| if [ $# -eq 0 ]; then | |
| echo "No arguments provided. First argument has to be version, e.g. '1.8.1', and second one the name of framework, e.g. 'NetworkModule'" | |
| exit 1 | |
| fi | |
| # Set properties | |
| FRAMEWORK_VERSION=$1 |
This file contains hidden or 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
| xcodebuild -create-xcframework -output "framework_name_._xcframework" \ | |
| -framework "/path/to/framework/for/simulator/inide/archive" \ | |
| -framework "/path/to/framework/for/iOS/inide/archive" |
This file contains hidden or 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
| xcodebuild archive -quiet \ | |
| -scheme {scheme_name} \ | |
| -sdk [ iphoneos | iphonesimulator | macosx MACOSX_DEPLOYMENT_TARGET=11.0 | ...] \ | |
| -archivePath {path_to_archvie} \ | |
| BUILD_LIBRARY_FOR_DISTRIBUTION=YES \ | |
| SKIP_INSTALL=NO |
This file contains hidden or 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
| default_platform(:ios) | |
| import "Utils/Keychain.rb" | |
| import "Utils/Git.rb" | |
| import "Utils/Slack.rb" | |
| import "Utils/Env.rb" | |
| import "Lanes/Release.rb" | |
| import "Lanes/Testflight.rb" | |
| platform :ios do |
This file contains hidden or 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
| private_lane :private_release do | params | | |
| begin | |
| # Temporay keychain creation | |
| ensure_temp_keychain(TEMP_KEYCHAIN_USER, TEMP_KEYCHAIN_PASSWORD) | |
| # the semantic version added | |
| type = params[:bump] |
This file contains hidden or 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
| private_lane :private_beta do | |
| begin | |
| # Ensure that your git status is not dirty | |
| ensure_git_status_clean | |
| # increment build number | |
| increment_build_number(xcodeproj: "#{APP_NAME}.xcodeproj") | |
This file contains hidden or 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
| def broadcast_message() | |
| version = get_info_plist_value( | |
| path: "#{APP_NAME}/Info.plist", | |
| key: "CFBundleShortVersionString" | |
| ) | |
| build = get_info_plist_value( | |
| path: "#{APP_NAME}/Info.plist", |
This file contains hidden or 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
| def delete_temp_keychain(name) | |
| delete_keychain( | |
| name: name | |
| ) if File.exist? File.expand_path("~/Library/Keychains/#{name}-db") | |
| end | |
| def create_temp_keychain(name, password) | |
| create_keychain( | |
| name: name, |
NewerOlder