mirror of
https://github.com/ProxymanApp/atlantis.git
synced 2026-05-20 20:20:35 +00:00
Add safety check
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
||||
+10
-1
@@ -47,6 +47,7 @@ public final class Atlantis: NSObject {
|
||||
private override init() {
|
||||
super.init()
|
||||
injector.delegate = self
|
||||
safetyCheck()
|
||||
}
|
||||
|
||||
// MARK: - Public config
|
||||
@@ -67,6 +68,13 @@ public final class Atlantis: NSObject {
|
||||
|
||||
extension Atlantis {
|
||||
|
||||
private func safetyCheck() {
|
||||
print("------------------------------------------------------------")
|
||||
print("---------- 🧊 Atlantis is running (version \(Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "Unknown"))")
|
||||
print("---------- If you found any problems, please report at: https://github.com/ProxymanApp/atlantis")
|
||||
print("------------------------------------------------------------")
|
||||
}
|
||||
|
||||
private func getPackage(_ task: URLSessionTask) -> Package? {
|
||||
// This method should be called from our queue
|
||||
|
||||
@@ -96,6 +104,7 @@ extension Atlantis: InjectorDelegate {
|
||||
|
||||
// Cache
|
||||
_ = strongSelf.getPackage(task)
|
||||
print("Did Add new package, count = \(strongSelf.packages.count)")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,7 +140,7 @@ extension Atlantis: InjectorDelegate {
|
||||
// Then remove it from our cache
|
||||
strongSelf.packages.removeValue(forKey: package.id)
|
||||
|
||||
print("------------- Did Complete")
|
||||
print("------------- Did Complete. Count = \(strongSelf.packages.count)")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -542,6 +542,7 @@
|
||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
MARKETING_VERSION = 1.0.0;
|
||||
ONLY_ACTIVE_ARCH = NO;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.atlantis.atlantis-iOS";
|
||||
PRODUCT_NAME = atlantis;
|
||||
@@ -566,6 +567,7 @@
|
||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
MARKETING_VERSION = 1.0.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.atlantis.atlantis-iOS";
|
||||
PRODUCT_NAME = atlantis;
|
||||
SKIP_INSTALL = YES;
|
||||
@@ -617,6 +619,7 @@
|
||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.12;
|
||||
MARKETING_VERSION = 1.0.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.atlantis.atlantis-macOS";
|
||||
PRODUCT_NAME = atlantis;
|
||||
SDKROOT = macosx;
|
||||
@@ -642,6 +645,7 @@
|
||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.12;
|
||||
MARKETING_VERSION = 1.0.0;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.atlantis.atlantis-macOS";
|
||||
PRODUCT_NAME = atlantis;
|
||||
SDKROOT = macosx;
|
||||
|
||||
Reference in New Issue
Block a user