Skip to content

Commit a9594a0

Browse files
authored
Merge pull request #56 from nativeapptemplate/substrate-v2--refactor
Remove vestigial code from NFC/Scan removal
2 parents 1bd4977 + f056702 commit a9594a0

5 files changed

Lines changed: 1 addition & 78 deletions

File tree

NativeAppTemplate.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
017278832D7D935700CE424F /* ImageSaver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 017278802D7D935700CE424F /* ImageSaver.swift */; };
9090
0172788B2D7D936E00CE424F /* CompletedTag.swift in Sources */ = {isa = PBXBuildFile; fileRef = 017278842D7D936E00CE424F /* CompletedTag.swift */; };
9191
0172788C2D7D936E00CE424F /* IdlingTagView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 017278872D7D936E00CE424F /* IdlingTagView.swift */; };
92-
0172788D2D7D936E00CE424F /* CustomerScannedTag.swift in Sources */ = {isa = PBXBuildFile; fileRef = 017278862D7D936E00CE424F /* CustomerScannedTag.swift */; };
9392
017278902D7D936E00CE424F /* TagView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 017278892D7D936E00CE424F /* TagView.swift */; };
9493
0172789A2D7D99D100CE424F /* ItemTagListCardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 017278972D7D99D100CE424F /* ItemTagListCardView.swift */; };
9594
0172789B2D7D99D100CE424F /* ItemTagListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 017278982D7D99D100CE424F /* ItemTagListView.swift */; };
@@ -250,7 +249,6 @@
250249
0172787E2D7D933000CE424F /* ShopDetailCardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShopDetailCardView.swift; sourceTree = "<group>"; };
251250
017278802D7D935700CE424F /* ImageSaver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImageSaver.swift; sourceTree = "<group>"; };
252251
017278842D7D936E00CE424F /* CompletedTag.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompletedTag.swift; sourceTree = "<group>"; };
253-
017278862D7D936E00CE424F /* CustomerScannedTag.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomerScannedTag.swift; sourceTree = "<group>"; };
254252
017278872D7D936E00CE424F /* IdlingTagView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IdlingTagView.swift; sourceTree = "<group>"; };
255253
017278892D7D936E00CE424F /* TagView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TagView.swift; sourceTree = "<group>"; };
256254
017278932D7D99D100CE424F /* ItemTagDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ItemTagDetailView.swift; sourceTree = "<group>"; };
@@ -701,7 +699,6 @@
701699
isa = PBXGroup;
702700
children = (
703701
017278842D7D936E00CE424F /* CompletedTag.swift */,
704-
017278862D7D936E00CE424F /* CustomerScannedTag.swift */,
705702
017278872D7D936E00CE424F /* IdlingTagView.swift */,
706703
017278892D7D936E00CE424F /* TagView.swift */,
707704
);
@@ -989,7 +986,6 @@
989986
0172788B2D7D936E00CE424F /* CompletedTag.swift in Sources */,
990987
0172788C2D7D936E00CE424F /* IdlingTagView.swift in Sources */,
991988
01A1339F2E08B2FD000AD24A /* AcceptTermsViewModel.swift in Sources */,
992-
0172788D2D7D936E00CE424F /* CustomerScannedTag.swift in Sources */,
993989
017278902D7D936E00CE424F /* TagView.swift in Sources */,
994990
0106414429AA061100B46FED /* PasswordEditView.swift in Sources */,
995991
0114F4032E07A88000F4A1DD /* ShopCreateViewModel.swift in Sources */,

NativeAppTemplate/Common/Errors/CodedError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// Error codes use the `NATI-XXXX` prefix (NativeAppTemplate iOS).
77
// Android uses `NATA-XXXX`.
8-
// Ranges: 1xxx App errors, 2xxx API errors, 3xxx NFC errors.
8+
// Ranges: 1xxx App errors, 2xxx API errors.
99

1010
import Foundation
1111

NativeAppTemplate/Styleguide/Color+Extensions.swift

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,6 @@ extension Color {
141141
static let idlingTagBorder = coolGrey10 // #F5F7FA
142142
static let idlingTagForeground = coolGrey2 // #323F4B
143143

144-
// MARK: Tags - Preparing
145-
146-
static let preparingTagBackground = yellow9 // #FFF3C4
147-
static let preparingTagBorder = yellow1 // #8D2B0B
148-
static let preparingTagForeground = yellow1 // #8D2B0B
149-
150-
// MARK: Tags - Customer Scanned
151-
152-
static let customerScannedTagBackground = red9 // #FFBDBD
153-
static let customerScannedTagBorder = coolGrey10 // #F5F7FA
154-
static let customerScannedTagForeground = red1 // #610316
155-
156144
// MARK: Tags - Completed
157145

158146
static let completedTagBackground = green9 // #C1F2C7
@@ -339,30 +327,6 @@ extension ShapeStyle where Self == Color {
339327
Color.idlingTagForeground
340328
}
341329

342-
static var preparingTagBackground: Color {
343-
Color.preparingTagBackground
344-
}
345-
346-
static var preparingTagBorder: Color {
347-
Color.preparingTagBorder
348-
}
349-
350-
static var preparingTagForeground: Color {
351-
Color.preparingTagForeground
352-
}
353-
354-
static var customerScannedTagBackground: Color {
355-
Color.customerScannedTagBackground
356-
}
357-
358-
static var customerScannedTagBorder: Color {
359-
Color.customerScannedTagBorder
360-
}
361-
362-
static var customerScannedTagForeground: Color {
363-
Color.customerScannedTagForeground
364-
}
365-
366330
static var completedTagBackground: Color {
367331
Color.completedTagBackground
368332
}

NativeAppTemplate/UI/Shared/MainButtonView.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ struct MainButtonView: View {
7373
.font(.uiButtonLabelLarge)
7474
.foregroundStyle(type.color)
7575
.padding(NativeAppTemplateConstants.Spacing.sm)
76-
// If commenting out below and select max large font size on settings accessibility, you will
77-
// not be enable to tap Scan button on Scan tab.
78-
// .background(GeometryReader { proxy in
79-
// Color.clear.preference(key: SizeKey.self, value: proxy.size)
80-
// })
8176

8277
Spacer()
8378
}

NativeAppTemplate/UI/Shared/Tags/CustomerScannedTag.swift

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)