Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token #3

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Niffler/Api/Sources/Api/Auth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public class Auth: Network {
userDefaults.removeObject(forKey: "UserAuthToken")
}

public static func saveAuth(_ token: String) {
userDefaults.set(token, forKey: "UserAuthToken")
}

init(
challenge: String? = nil
) {
Expand Down
22 changes: 11 additions & 11 deletions Niffler/Niffler.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
746853762B0CAE9700E48DFE /* Niffler.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Niffler.app; sourceTree = BUILT_PRODUCTS_DIR; };
746853762B0CAE9700E48DFE /* NifflerApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NifflerApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
746853792B0CAE9700E48DFE /* NifflerApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NifflerApp.swift; sourceTree = "<group>"; };
7468537B2B0CAE9700E48DFE /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
7468537D2B0CAE9700E48DFE /* Item.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Item.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -121,7 +121,7 @@
746853772B0CAE9700E48DFE /* Products */ = {
isa = PBXGroup;
children = (
746853762B0CAE9700E48DFE /* Niffler.app */,
746853762B0CAE9700E48DFE /* NifflerApp.app */,
74D55B772BE12B9600AEF67D /* NifflerUITests.xctest */,
);
name = Products;
Expand Down Expand Up @@ -223,9 +223,9 @@
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
746853752B0CAE9700E48DFE /* Niffler */ = {
746853752B0CAE9700E48DFE /* NifflerApp */ = {
isa = PBXNativeTarget;
buildConfigurationList = 7468539C2B0CAE9900E48DFE /* Build configuration list for PBXNativeTarget "Niffler" */;
buildConfigurationList = 7468539C2B0CAE9900E48DFE /* Build configuration list for PBXNativeTarget "NifflerApp" */;
buildPhases = (
746853722B0CAE9700E48DFE /* Sources */,
746853732B0CAE9700E48DFE /* Frameworks */,
Expand All @@ -235,12 +235,12 @@
);
dependencies = (
);
name = Niffler;
name = NifflerApp;
packageProductDependencies = (
749E20F52B0CB0070045F4E3 /* Api */,
);
productName = Niffler;
productReference = 746853762B0CAE9700E48DFE /* Niffler.app */;
productReference = 746853762B0CAE9700E48DFE /* NifflerApp.app */;
productType = "com.apple.product-type.application";
};
74D55B762BE12B9600AEF67D /* NifflerUITests */ = {
Expand Down Expand Up @@ -296,7 +296,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
746853752B0CAE9700E48DFE /* Niffler */,
746853752B0CAE9700E48DFE /* NifflerApp */,
74D55B762BE12B9600AEF67D /* NifflerUITests */,
);
};
Expand Down Expand Up @@ -369,7 +369,7 @@
/* Begin PBXTargetDependency section */
74D55B7E2BE12B9600AEF67D /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 746853752B0CAE9700E48DFE /* Niffler */;
target = 746853752B0CAE9700E48DFE /* NifflerApp */;
targetProxy = 74D55B7D2BE12B9600AEF67D /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
Expand Down Expand Up @@ -516,7 +516,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.akaDuality.Niffler;
PRODUCT_BUNDLE_IDENTIFIER = com.qaGuru.Niffler;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -546,7 +546,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.akaDuality.Niffler;
PRODUCT_BUNDLE_IDENTIFIER = com.qaGuru.Niffler;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -602,7 +602,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
7468539C2B0CAE9900E48DFE /* Build configuration list for PBXNativeTarget "Niffler" */ = {
7468539C2B0CAE9900E48DFE /* Build configuration list for PBXNativeTarget "NifflerApp" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7468539D2B0CAE9900E48DFE /* Debug */,
Expand Down
2 changes: 2 additions & 0 deletions Niffler/Niffler/NifflerApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
if ProcessInfo.processInfo.arguments.contains("RemoveAuthOnStart") {
Auth.removeAuth()
UIView.setAnimationsEnabled(false)
UIApplication.shared.keyWindow?.layer.speed = 100

Check notice on line 30 in Niffler/Niffler/NifflerApp.swift

View check run for this annotation

Xcode Cloud / NifflerApp | UI-tests | Test - iOS

Niffler/Niffler/NifflerApp.swift#L30

'keyWindow' was deprecated in iOS 13.0: Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes
}
}
}
Expand All @@ -43,3 +43,5 @@
.environmentObject(spendsRepository)
}
}

// Delete this line