Skip to content
Snippets Groups Projects
Commit f135a7af authored by Bruno Muniz's avatar Bruno Muniz :apple:
Browse files

Merge branch 'fix/update-packages' into 'dev'

Fixing pipeline

See merge request elixxir/client-ios!79
parents 256d3660 3b20d44b
No related branches found
No related tags found
1 merge request!79Fixing pipeline
stages: stages:
- test - test
#- archive
#- deploy
variables:
LANG: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
REPO_DIR: gitlab.com/elixxir
REPO_NAME: client-ios
before_script: before_script:
- bundle install - echo $CI_BUILD_REF
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - echo $CI_PROJECT_DIR
- mkdir -p ~/.ssh - echo $PWD
- chmod 700 ~/.ssh - swift --version
- ssh-keyscan -t rsa $GITLAB_SERVER > ~/.ssh/known_hosts - xcodebuild -version
- eval $(ssh-agent -s)
Unit tests: - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
tags: - mkdir -p ~/.ssh
- ios - chmod 700 ~/.ssh
- ssh-keyscan -t rsa $GITLAB_SERVER > ~/.ssh/known_hosts
unit-testing:
stage: test stage: test
tags:
- ios
script: script:
- echo test - set -o pipefail && xcodebuild -workspace 'client-ios.xcworkspace' -scheme 'Mock' -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=16.0,name=iPhone 14' test
# - bundle exec fastlane test scheme:'Mock' retry: 1
# - cp -R /Users/elixxir/Library/Developer/Xcode/DerivedData/client-ios*/Build/Products/Debug-iphonesimulator/client-ios.app ./
# - cp -R /Users/elixxir/Library/Developer/Xcode/DerivedData/client-ios*/Build/Products/Debug-iphonesimulator/client-ios.app.dSYM ./
# artifacts:
# paths:
# - ./client-ios.app
# - ./client-ios.app.dSYM
#Mock:
# tags:
# - ios
# stage: archive
# script:
# - bundle exec fastlane archive scheme:'Mock' app_id:'xx.messenger.mock' notifications_app_id:'xx.messenger.mock.notifications' gym_method:'development' method:'development'
# needs: ['Unit tests']
# artifacts:
# paths:
# - ./Mock.ipa
#Release:
# tags:
# - ios
# stage: archive
# script:
# - bundle exec fastlane archive scheme:'Release' app_id:'xx.messenger' notifications_app_id:'xx.messenger.notifications' gym_method:'app-store' method:'appstore'
# needs: ['Unit tests']
# artifacts:
# paths:
# - ./Release.ipa
#TestFlight:
# tags:
# - ios
# stage: deploy
# script:
# - bundle exec fastlane deploy scheme:'Release'
# needs: ['Release']
\ No newline at end of file
...@@ -201,129 +201,9 @@ ...@@ -201,129 +201,9 @@
skipped = "NO"> skipped = "NO">
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "ChatFeatureTests" BlueprintIdentifier = "AppFeatureTests"
BuildableName = "ChatFeatureTests" BuildableName = "AppFeatureTests"
BlueprintName = "ChatFeatureTests" BlueprintName = "AppFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ChatListFeatureTests"
BuildableName = "ChatListFeatureTests"
BlueprintName = "ChatListFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ContactFeatureTests"
BuildableName = "ContactFeatureTests"
BlueprintName = "ContactFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ContactListFeatureTests"
BuildableName = "ContactListFeatureTests"
BlueprintName = "ContactListFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "OnboardingFeatureTests"
BuildableName = "OnboardingFeatureTests"
BlueprintName = "OnboardingFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PresentationTests"
BuildableName = "PresentationTests"
BlueprintName = "PresentationTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ProfileFeatureTests"
BuildableName = "ProfileFeatureTests"
BlueprintName = "ProfileFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "RequestsFeatureTests"
BuildableName = "RequestsFeatureTests"
BlueprintName = "RequestsFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ScanFeatureTests"
BuildableName = "ScanFeatureTests"
BlueprintName = "ScanFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SearchFeatureTests"
BuildableName = "SearchFeatureTests"
BlueprintName = "SearchFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SettingsFeatureTests"
BuildableName = "SettingsFeatureTests"
BlueprintName = "SettingsFeatureTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ThemeTests"
BuildableName = "ThemeTests"
BlueprintName = "ThemeTests"
ReferencedContainer = "container:..">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DependencyInjectionTests"
BuildableName = "DependencyInjectionTests"
BlueprintName = "DependencyInjectionTests"
ReferencedContainer = "container:.."> ReferencedContainer = "container:..">
</BuildableReference> </BuildableReference>
</TestableReference> </TestableReference>
......
source "https://rubygems.org"
gem 'fastlane', '~> 2.183', '>= 2.183.2'
gem 'xcov', '~> 1.7', '>= 1.7.5'
\ No newline at end of file
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.3)
activesupport (5.2.5)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
algoliasearch (1.27.5)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.1.1)
aws-partitions (1.479.0)
aws-sdk-core (3.117.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.239.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.44.0)
aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.96.2)
aws-sdk-core (~> 3, >= 3.112.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.2.4)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
claide (1.0.3)
cocoapods (1.10.1)
addressable (~> 2.6)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.10.1)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 1.4.0, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.4.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (>= 2.3.0, < 3.0)
gh_inspector (~> 1.0)
molinillo (~> 0.6.6)
nap (~> 1.0)
ruby-macho (~> 1.4)
xcodeproj (>= 1.19.0, < 2.0)
cocoapods-core (1.10.1)
activesupport (> 5.0, < 6)
addressable (~> 2.6)
algoliasearch (~> 1.0)
concurrent-ruby (~> 1.1)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
netrc (~> 0.11)
public_suffix
typhoeus (~> 1.0)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.4.0)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-trunk (1.5.0)
nap (>= 0.8, < 2.0)
netrc (~> 0.11)
cocoapods-try (1.2.0)
colored (1.2)
colored2 (3.1.2)
commander (4.6.0)
highline (~> 2.0.0)
concurrent-ruby (1.1.8)
declarative (0.0.20)
digest-crc (0.6.4)
rake (>= 12.0.0, < 14.0.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
emoji_regex (3.2.2)
escape (0.0.4)
ethon (0.14.0)
ffi (>= 1.15.0)
excon (0.85.0)
faraday (1.5.1)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0.1)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.1)
faraday-patron (~> 1.0)
multipart-post (>= 1.2, < 3)
ruby2_keywords (>= 0.0.4)
faraday-cookie_jar (0.0.7)
faraday (>= 0.8.0)
http-cookie (~> 1.0.0)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday_middleware (1.0.0)
faraday (~> 1.0)
fastimage (2.2.4)
fastlane (2.188.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
aws-sdk-s3 (~> 1.0)
babosa (>= 1.0.3, < 2.0.0)
bundler (>= 1.12.0, < 3.0.0)
colored
commander (~> 4.6)
dotenv (>= 2.1.1, < 3.0.0)
emoji_regex (>= 0.1, < 4.0)
excon (>= 0.71.0, < 1.0.0)
faraday (~> 1.0)
faraday-cookie_jar (~> 0.0.6)
faraday_middleware (~> 1.0)
fastimage (>= 2.1.0, < 3.0.0)
gh_inspector (>= 1.1.2, < 2.0.0)
google-apis-androidpublisher_v3 (~> 0.1)
google-apis-playcustomapp_v1 (~> 0.1)
google-cloud-storage (~> 1.31)
highline (~> 2.0)
json (< 3.0.0)
jwt (>= 2.1.0, < 3)
mini_magick (>= 4.9.4, < 5.0.0)
multipart-post (~> 2.0.0)
naturally (~> 2.2)
plist (>= 3.1.0, < 4.0.0)
rubyzip (>= 2.0.0, < 3.0.0)
security (= 0.1.3)
simctl (~> 1.6.3)
terminal-notifier (>= 2.0.0, < 3.0.0)
terminal-table (>= 1.4.5, < 2.0.0)
tty-screen (>= 0.6.3, < 1.0.0)
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
ffi (1.15.0)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.9.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-core (0.4.1)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
mini_mime (~> 1.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.a)
rexml
webrick
google-apis-iamcredentials_v1 (0.6.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-playcustomapp_v1 (0.5.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-storage_v1 (0.6.0)
google-apis-core (>= 0.4, < 2.a)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.5.0)
faraday (>= 0.17.3, < 2.0)
google-cloud-errors (1.1.0)
google-cloud-storage (1.34.1)
addressable (~> 2.5)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
google-apis-storage_v1 (~> 0.1)
google-cloud-core (~> 1.6)
googleauth (>= 0.16.2, < 2.a)
mini_mime (~> 1.0)
googleauth (0.16.2)
faraday (>= 0.17.3, < 2.0)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (~> 0.14)
highline (2.0.3)
http-cookie (1.0.4)
domain_name (~> 0.5)
httpclient (2.8.3)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
jmespath (1.4.0)
json (2.5.1)
jwt (2.2.3)
memoist (0.16.2)
mini_magick (4.11.0)
mini_mime (1.1.0)
minitest (5.14.4)
molinillo (0.6.6)
multi_json (1.15.0)
multipart-post (2.0.0)
nanaimo (0.3.0)
nap (1.1.0)
naturally (2.2.1)
netrc (0.11.0)
os (1.1.1)
plist (3.6.0)
public_suffix (4.0.6)
rake (13.0.6)
representable (3.1.1)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rexml (3.2.5)
rouge (2.0.7)
ruby-macho (1.4.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
security (0.1.3)
signet (0.15.0)
addressable (~> 2.3)
faraday (>= 0.17.3, < 2.0)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simctl (1.6.8)
CFPropertyList
naturally
slack-notifier (2.4.0)
terminal-notifier (2.0.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
trailblazer-option (0.1.1)
tty-cursor (0.7.1)
tty-screen (0.8.1)
tty-spinner (0.9.3)
tty-cursor (~> 0.7)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (1.2.9)
thread_safe (~> 0.1)
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
unicode-display_width (1.7.0)
webrick (1.7.0)
word_wrap (1.0.0)
xcodeproj (1.20.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.3.0)
rexml (~> 3.2.4)
xcov (1.7.5)
fastlane (>= 2.141.0, < 3.0.0)
multipart-post
slack-notifier
terminal-table
xcodeproj
xcresult (~> 0.2.0)
xcpretty (0.3.0)
rouge (~> 2.0.7)
xcpretty-travis-formatter (1.0.1)
xcpretty (~> 0.2, >= 0.0.7)
xcresult (0.2.1)
PLATFORMS
ruby
DEPENDENCIES
cocoapods
fastlane (~> 2.183, >= 2.183.2)
xcov (~> 1.7, >= 1.7.5)
BUNDLED WITH
2.2.16
import XCTest
@testable import Shared
final class DateTests: XCTestCase {
var sut: Date!
override func setUp() {
sut = DateFormatter.nonUS.date(from: "1/06/1995 07:00:00")!
}
func test_MonthDayFormat() {
XCTAssertEqual(DateFormatter.monthDay.string(from: sut), "June 1")
}
func test_shortTimeFormat() {
XCTAssertEqual(DateFormatter.shortTime.string(from: sut), "7:00 AM")
}
func test_shortDateFormat() {
XCTAssertEqual(DateFormatter.shortDate.string(from: sut), "6/1/95")
}
}
import XCTest import XCTest
@testable import App @testable import AppFeature
final class AppDelegateTests: XCTestCase { final class AppDelegateTests: XCTestCase {
func test_invitationUniversalLink() { func test_invitationUniversalLink() {
XCTAssertNil(getUsernameFromInvitationDeepLink( XCTAssertNil(getUsernameFromInvitationDeepLink(
URL(string: "https://elixxir.io/connecting?username=some")! URL(string: "https://elixxir.io/connecting?username=some")!
)) ))
XCTAssertNil(getUsernameFromInvitationDeepLink( XCTAssertNil(getUsernameFromInvitationDeepLink(
URL(string: "http://elixxir.io/connect?username=some")! URL(string: "http://elixxir.io/connect?username=some")!
)) ))
XCTAssertNil(getUsernameFromInvitationDeepLink( XCTAssertNil(getUsernameFromInvitationDeepLink(
URL(string: "https://io.elixxir/connect?username=some")! URL(string: "https://io.elixxir/connect?username=some")!
)) ))
XCTAssertEqual(getUsernameFromInvitationDeepLink( XCTAssertEqual(getUsernameFromInvitationDeepLink(
URL(string: "https://elixxir.io/connect?username=brad")! URL(string: "https://elixxir.io/connect?username=brad")!
), "brad") ), "brad")
XCTAssertNil(getUsernameFromInvitationDeepLink( XCTAssertNil(getUsernameFromInvitationDeepLink(
URL(string: "https://elixxir.io/connect?password=value")! URL(string: "https://elixxir.io/connect?password=value")!
)) ))
XCTAssertNil(getUsernameFromInvitationDeepLink( XCTAssertNil(getUsernameFromInvitationDeepLink(
URL(string: "https://elixxir.io/connect?usernamer=some")! URL(string: "https://elixxir.io/connect?usernamer=some")!
)) ))
XCTAssertNotEqual(getUsernameFromInvitationDeepLink( XCTAssertNotEqual(getUsernameFromInvitationDeepLink(
URL(string: "https://elixxir.io/connect?username=anderson")! URL(string: "https://elixxir.io/connect?username=anderson")!
), "silva") ), "silva")
} }
} }
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/ekazaev/ChatLayout", "location" : "https://github.com/ekazaev/ChatLayout",
"state" : { "state" : {
"revision" : "b7fe23d3ab6c174da6fad66383bfc359c212f465", "revision" : "3743433d1e10a041e56a50d375dea2fd46a5fd22",
"version" : "1.2.7" "version" : "1.2.14"
} }
}, },
{ {
...@@ -68,8 +68,8 @@ ...@@ -68,8 +68,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/combine-schedulers", "location" : "https://github.com/pointfreeco/combine-schedulers",
"state" : { "state" : {
"revision" : "aa3e575929f2bcc5bad012bd2575eae716cbcdf7", "revision" : "882ac01eb7ef9e36d4467eb4b1151e74fcef85ab",
"version" : "0.8.0" "version" : "0.9.1"
} }
}, },
{ {
...@@ -140,8 +140,8 @@ ...@@ -140,8 +140,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleUtilities.git", "location" : "https://github.com/google/GoogleUtilities.git",
"state" : { "state" : {
"revision" : "68ea347bdb1a69e2d2ae2e25cd085b6ef92f64cb", "revision" : "6db6edb48bdd9943426562c7f042a5492de5ba3d",
"version" : "7.9.0" "version" : "7.10.0"
} }
}, },
{ {
...@@ -149,8 +149,8 @@ ...@@ -149,8 +149,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/groue/GRDB.swift", "location" : "https://github.com/groue/GRDB.swift",
"state" : { "state" : {
"revision" : "0ac435744a4c67c4ec23a4a671c0d53ce1fee7c6", "revision" : "8330469ac3cbbf0ee52b7e8a4e2b1f4c44bb13ea",
"version" : "6.0.0" "version" : "6.4.0"
} }
}, },
{ {
...@@ -293,17 +293,17 @@ ...@@ -293,17 +293,17 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-composable-architecture.git", "location" : "https://github.com/pointfreeco/swift-composable-architecture.git",
"state" : { "state" : {
"revision" : "1fcd53fc875bade47d850749ea53c324f74fd64d", "revision" : "c9259b5f74892690cb04a9a8088b4a1789b05a7d",
"version" : "0.45.0" "version" : "0.47.2"
} }
}, },
{ {
"identity" : "swift-custom-dump", "identity" : "swift-custom-dump",
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-custom-dump.git", "location" : "https://github.com/pointfreeco/swift-custom-dump",
"state" : { "state" : {
"revision" : "819d9d370cd721c9d87671e29d947279292e4541", "revision" : "ead7d30cc224c3642c150b546f4f1080d1c411a8",
"version" : "0.6.0" "version" : "0.6.1"
} }
}, },
{ {
...@@ -311,8 +311,8 @@ ...@@ -311,8 +311,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-identified-collections", "location" : "https://github.com/pointfreeco/swift-identified-collections",
"state" : { "state" : {
"revision" : "bfb0d43e75a15b6dfac770bf33479e8393884a36", "revision" : "a08887de589e3829d488e0b4b707b2ca804b1060",
"version" : "0.4.1" "version" : "0.5.0"
} }
}, },
{ {
...@@ -329,8 +329,8 @@ ...@@ -329,8 +329,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-protobuf", "location" : "https://github.com/apple/swift-protobuf",
"state" : { "state" : {
"revision" : "88c7d15e1242fdb6ecbafbc7926426a19be1e98a", "revision" : "ab3a58b7209a17d781c0d1dbb3e1ff3da306bae8",
"version" : "1.20.2" "version" : "1.20.3"
} }
}, },
{ {
...@@ -342,6 +342,15 @@ ...@@ -342,6 +342,15 @@
"version" : "0.8.1" "version" : "0.8.1"
} }
}, },
{
"identity" : "swiftui-navigation",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swiftui-navigation",
"state" : {
"revision" : "4b666bcc59ba1711a7543ecb37e1d181963b180c",
"version" : "0.4.2"
}
},
{ {
"identity" : "swiftydropbox", "identity" : "swiftydropbox",
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
...@@ -354,10 +363,10 @@ ...@@ -354,10 +363,10 @@
{ {
"identity" : "xctest-dynamic-overlay", "identity" : "xctest-dynamic-overlay",
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay.git", "location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
"state" : { "state" : {
"revision" : "16e6409ee82e1b81390bdffbf217b9c08ab32784", "revision" : "5a5457a744239896e9b0b03a8e1a5069c3e7b91f",
"version" : "0.5.0" "version" : "0.6.0"
} }
}, },
{ {
......
update_fastlane
default_platform(:ios)
app_name = 'client-ios'
xcodeproj = app_name+'.xcodeproj'
workspace = app_name+'.xcworkspace'
username = ENV["USERNAME"]
team_id = ENV["TEAM_ID"]
git_url = ENV["GIT_URL"]
slack_url = ENV["SLACK_URL"]
lane :test do |options|
clear_derived_data
scan(
workspace: workspace,
scheme: options[:scheme],
clean: true,
skip_slack: true,
code_coverage: true,
verbose: true
)
end
lane :archive do |options|
clear_derived_data
avoid_2FA
sign(
scheme: options[:scheme],
app_id: options[:app_id],
notifications_app_id: options[:notifications_app_id]
)
gym(
scheme: options[:scheme],
workspace: workspace,
export_method: options[:gym_method],
clean: true,
output_name: options[:scheme]+'.ipa',
export_team_id: team_id,
verbose: true
)
end
lane :deploy do |options|
avoid_2FA
changelog_from_git_commits(
pretty: '- (%ae) %s',
date_format: 'short',
match_lightweight_tag: false,
merge_commit_filtering: 'exclude_merges'
)
upload_to_testflight(skip_waiting_for_build_processing: true)
build = number_of_commits(all: true).to_s
version = get_version_number(xcodeproj: './App/'+xcodeproj, target: app_name).to_s
slack(
message: 'iOS '+options[:scheme]+' '+version+' ('+build+') 🚀',
slack_url: slack_url,
default_payloads: [],
use_webhook_configured_username_and_icon: true,
fail_on_error: false,
success: true,
link_names: true
)
end
lane :sign do |options|
match(type: options[:method], git_url: git_url, app_identifier: options[:app_id], verbose: true)
match(type: options[:method], git_url: git_url, app_identifier: options[:notifications_app_id], verbose: true)
cert(development: options[:method] == 'development', username: username)
sigh(development: options[:method] == 'development', app_identifier: options[:app_id])
sigh(development: options[:method] == 'development', app_identifier: options[:notifications_app_id])
end
lane :avoid_2FA do
app_store_connect_api_key(
key_id: ENV["KEY_ID"],
issuer_id: ENV["ISSUER_ID"],
key_filepath: ENV["KEY_FILEPATH"],
duration: 1200,
in_house: false
)
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment