Skip to content

Commit

Permalink
Release 2.0.2 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-Fabi committed Feb 28, 2023
2 parents 51716a3 + 2616f6e commit f68d291
Show file tree
Hide file tree
Showing 18 changed files with 470 additions and 116 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Publish to TestFlight
on:
push:
branches:
- main
- develop

jobs:
publish:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup Ruby 2.7.4
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.4'
bundler-cache: true

- name: Extract secrets
run: |
cd fastlane
echo "${{ secrets.KEYS_TAR_ASC }}" > .keys.tar.gz.asc
gpg -d --passphrase "${{ secrets.KEYS_PASSPHRASE }}" --batch .keys.tar.gz.asc > .keys.tar.gz
tar xzf .keys.tar.gz
chmod 600 .keys/github-deploy-key
cd ..
- name: Netrc github.com
uses: extractions/netrc@v1
with:
machine: github.com
username: ${{ secrets.NETRC_USERNAME }}
password: ${{ secrets.NETRC_TOKEN }}

- name: Netrc api.github.com
uses: extractions/netrc@v1
with:
machine: api.github.com
username: ${{ secrets.NETRC_USERNAME }}
password: ${{ secrets.NETRC_TOKEN }}

- name: Setup xcodegen and init xcode project
uses: xavierLowmiller/xcodegen-action@1.1.2
with:
spec: project.yml
use-cache: true

- name: Publish to TestFlight
run: bundle exec fastlane releaseWaiterRobot_${{ github.ref_name }}
env:
FASTLANE_APPLE_ID: ${{ secrets.FASTLANE_APPLE_ID }}
FASTLANE_CERTIFICATES_GIT_URL: ${{ secrets.FASTLANE_CERTIFICATES_GIT_URL }}
FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,9 @@ xcuserdata/
*.dSYM

# End of https://www.toptal.com/developers/gitignore/api/fastlane,xcode,intellij,appcode,macos

.keys*
.env.*
!.env.example

.idea
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.4
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gem 'fastlane'
9 changes: 8 additions & 1 deletion WaiterRobot/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {

// Init CommonApp right at the start as e.g. koin might depend on some properties of it
var appVersion = readFromInfoPlist(withKey: "CFBundleShortVersionString")
let versionSuffix = readFromInfoPlist(withKey: "VERSION_SUFFIX")
if !versionSuffix.isEmpty {
appVersion += "-\(versionSuffix)"
}


CommonApp.shared.doInit(
appVersion: readFromInfoPlist(withKey: "CFBundleShortVersionString"),
appVersion: appVersion,
appBuild: Int32(readFromInfoPlist(withKey: "CFBundleVersion"))!,
phoneModel: UIDevice.current.deviceType,
os: OS.Ios(version: UIDevice.current.systemVersion),
Expand Down
2 changes: 2 additions & 0 deletions WaiterRobot/Ui/Billing/BillingScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ struct BillingScreen: View {
if vm.state.billItems.isEmpty {
Text(S.billing.noOpenBill(value0: table.number.description))
.multilineTextAlignment(.center)
.frame(maxWidth: .infinity)
.padding()
} else {
Section {
ForEach(vm.state.billItems, id: \.self) { item in
Expand Down
4 changes: 2 additions & 2 deletions WaiterRobot/Ui/Login/LoginScannerScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ struct LoginScannerScreen: View {
@EnvironmentObject var navigator: UIPilot<Screen>

@StateObject private var strongVM = ObservableViewModel(vm: koin.loginScannerVM())

var body: some View {
unowned let vm = strongVM

ScreenContainer(vm.state) {
VStack {
CodeScannerView(
codeTypes: [.qr],
simulatedData: "https://lava.kellner.team/ml/signIn?token=sONDq4mMVVAwUY2AvkmBDAfI5DM&purpose=CREATE"
simulatedData: ""
) { result in
switch result {
case .success(let result):
Expand Down
1 change: 1 addition & 0 deletions WaiterRobot/Ui/Order/OrderScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct OrderScreen: View {
if(vm.state.currentOrder.isEmpty) {
Text(S.order.addProduct())
.multilineTextAlignment(.center)
.frame(maxWidth: .infinity)
.padding()
} else {
List {
Expand Down
2 changes: 2 additions & 0 deletions WaiterRobot/Ui/SwitchEvent/SwitchEventScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ struct SwitchEventScreen: View {

Text(S.switchEvent.desc())
.multilineTextAlignment(.center)
.frame(maxWidth: .infinity)
.padding()

Divider()
Expand All @@ -30,6 +31,7 @@ struct SwitchEventScreen: View {
if vm.state.events.isEmpty {
Text(S.switchEvent.noEventFound())
.multilineTextAlignment(.center)
.frame(maxWidth: .infinity)
.padding()
} else {
LazyVStack {
Expand Down
2 changes: 2 additions & 0 deletions WaiterRobot/Ui/TableDetail/TableDetailScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ struct TableDetailScreen: View {
if vm.state.orderedItems.isEmpty {
Text(S.tableDetail.noOrder(value0: table.number.description))
.multilineTextAlignment(.center)
.frame(maxWidth: .infinity)
.padding()
} else {
ForEach(vm.state.orderedItems, id: \.id) { item in
OrderedItemView(item: item) {
Expand Down
1 change: 1 addition & 0 deletions WaiterRobot/Ui/TableList/TableListScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ struct TableListScreen: View {
if vm.state.tables.isEmpty {
Text(S.tableList.noTableFound())
.multilineTextAlignment(.center)
.frame(maxWidth: .infinity)
.padding()
} else {
LazyVGrid(columns: layout, spacing: 30) {
Expand Down
Loading

0 comments on commit f68d291

Please sign in to comment.