mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-03-17 23:07:23 +01:00
Abstracted bundle prefix
This commit is contained in:
@@ -25,7 +25,7 @@ struct Secretive: App {
|
||||
WindowGroup {
|
||||
ContentView<Updater, AgentStatusChecker>(showingCreation: $showingCreation, runningSetup: $showingSetup, hasRunSetup: $hasRunSetup)
|
||||
.environmentObject(storeList)
|
||||
.environmentObject(Updater(checkOnLaunch: hasRunSetup))
|
||||
.environmentObject(Updater(checkOnLaunch: hasRunSetup, bundlePrefix: BundlePrefix))
|
||||
.environmentObject(agentStatusChecker)
|
||||
.onAppear {
|
||||
if !hasRunSetup {
|
||||
|
||||
@@ -28,7 +28,7 @@ class JustUpdatedChecker: ObservableObject, JustUpdatedCheckerProtocol {
|
||||
extension JustUpdatedChecker {
|
||||
|
||||
enum Constants {
|
||||
static let previousVersionUserDefaultsKey = "com.maxgoedjen.Secretive.lastBuild"
|
||||
static let previousVersionUserDefaultsKey = BundlePrefix + ".lastBuild"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
7
Sources/Secretive/Helpers/Secretive-Bridging-Header.h
Normal file
7
Sources/Secretive/Helpers/Secretive-Bridging-Header.h
Normal file
@@ -0,0 +1,7 @@
|
||||
//
|
||||
// Use this file to import your target's public headers that you would like to expose to Swift.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
extern NSString *const BundlePrefix;
|
||||
@@ -12,7 +12,7 @@
|
||||
<true/>
|
||||
<key>keychain-access-groups</key>
|
||||
<array>
|
||||
<string>$(AppIdentifierPrefix)com.maxgoedjen.Secretive</string>
|
||||
<string>$(AppIdentifierPrefix)$(BUNDLE_PREFIX)</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
Reference in New Issue
Block a user