Skip to content

Commit

Permalink
Merge pull request #31 from nightscout/feat-bundleid-versionnumber
Browse files Browse the repository at this point in the history
Feat: App display name, BundleID and reset of version number to 0.1.0
  • Loading branch information
Sjoerd-Bo3 committed Apr 2, 2024
2 parents 1d3c8f0 + 89d45e8 commit 8cd27c3
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions Config.xcconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
APP_DISPLAY_NAME = OiAPS
APP_VERSION = 2.3.3
APP_DISPLAY_NAME = Open-iAPS
APP_VERSION = 0.1.0
APP_BUILD_NUMBER = 1
COPYRIGHT_NOTICE =
DEVELOPER_TEAM = ##TEAM_ID##
BUNDLE_IDENTIFIER = ru.artpancreas.$(DEVELOPMENT_TEAM).FreeAPS
BUNDLE_IDENTIFIER = org.nightscout.$(DEVELOPMENT_TEAM).openiaps
APP_GROUP_ID = group.com.$(DEVELOPMENT_TEAM).loopkit.LoopGroup
APP_ICON = OiAPS_Icon
APP_URL_SCHEME = freeaps-x
APP_URL_SCHEME = Open-iAPS

#include? "../../ConfigOverride.xcconfig"
#include? "ConfigOverride.xcconfig"
12 changes: 6 additions & 6 deletions FreeAPS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3161,7 +3161,7 @@
GENERATE_INFOPLIST_FILE = YES;
IBSC_MODULE = FreeAPSWatch_WatchKit_Extension;
INFOPLIST_FILE = FreeAPSWatch/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = iAPS;
INFOPLIST_KEY_CFBundleDisplayName = Open-iAPS;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = "$(BUNDLE_IDENTIFIER)";
MARKETING_VERSION = "$(APP_VERSION)";
Expand Down Expand Up @@ -3196,7 +3196,7 @@
GENERATE_INFOPLIST_FILE = YES;
IBSC_MODULE = FreeAPSWatch_WatchKit_Extension;
INFOPLIST_FILE = FreeAPSWatch/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = iAPS;
INFOPLIST_KEY_CFBundleDisplayName = Open-iAPS;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = "$(BUNDLE_IDENTIFIER)";
MARKETING_VERSION = "$(APP_VERSION)";
Expand Down Expand Up @@ -3226,7 +3226,7 @@
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "FreeAPSWatch WatchKit Extension/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "iAPS WatchKit Extension";
INFOPLIST_KEY_CFBundleDisplayName = "Open-iAPS WatchKit Extension";
INFOPLIST_KEY_CLKComplicationPrincipalClass = FreeAPSWatch_WatchKit_Extension.ComplicationController;
INFOPLIST_KEY_NSHealthClinicalHealthRecordsShareUsageDescription = "Bla bla Record Health";
INFOPLIST_KEY_NSHealthShareUsageDescription = "Bla bla Share Health";
Expand Down Expand Up @@ -3266,7 +3266,7 @@
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "FreeAPSWatch WatchKit Extension/Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = "iAPS WatchKit Extension";
INFOPLIST_KEY_CFBundleDisplayName = "Open-iAPS WatchKit Extension";
INFOPLIST_KEY_CLKComplicationPrincipalClass = FreeAPSWatch_WatchKit_Extension.ComplicationController;
INFOPLIST_KEY_NSHealthClinicalHealthRecordsShareUsageDescription = "Bla bla Record Health";
INFOPLIST_KEY_NSHealthShareUsageDescription = "Bla bla Share Health";
Expand Down Expand Up @@ -3304,7 +3304,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = ru.artpancreas.FreeAPSTests;
PRODUCT_BUNDLE_IDENTIFIER = "$(BUNDLE_IDENTIFIER).FreeAPSTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -3325,7 +3325,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = ru.artpancreas.FreeAPSTests;
PRODUCT_BUNDLE_IDENTIFIER = "$(BUNDLE_IDENTIFIER).FreeAPSTests";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
1 change: 0 additions & 1 deletion FreeAPS/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
<key>CFBundleURLSchemes</key>
<array>
<string>$(APP_URL_SCHEME)</string>
<string>freeaps-x</string>
</array>
</dict>
</array>
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/APS/CGM/CGMType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ enum CGMType: String, JSON, CaseIterable, Identifiable {
case .simulator:
return nil
case .libreTransmitter:
return URL(string: "freeaps-x://libre-transmitter")!
return URL(string: "Open-iAPS://libre-transmitter")!
}
}

Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Models/AlertEntry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct AlertEntry: JSON, Codable, Hashable {
let contentBody: String?
var errorMessage: String?

static let manual = "freeaps-x"
static let manual = "Open-iAPS"

static func == (lhs: AlertEntry, rhs: AlertEntry) -> Bool {
lhs.issuedDate == rhs.issuedDate
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Models/CarbsEntry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct CarbsEntry: JSON, Equatable, Hashable {
let isFPU: Bool?
let fpuID: String?

static let manual = "freeaps-x"
static let manual = "Open-iAPS"
static let appleHealth = "applehealth"

static func == (lhs: CarbsEntry, rhs: CarbsEntry) -> Bool {
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Models/NightscoutTreatment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct NigtscoutTreatment: JSON, Hashable, Equatable {
let targetTop: Decimal?
let targetBottom: Decimal?

static let local = "freeaps-x"
static let local = "Open-iAPS"

static let empty = NigtscoutTreatment(from: "{}")!

Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Models/TempTarget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct TempTarget: JSON, Identifiable, Equatable, Hashable {
let enteredBy: String?
let reason: String?

static let manual = "freeaps-x"
static let manual = "Open-iAPS"
static let custom = "Temp target"
static let cancel = "Cancel"

Expand Down
4 changes: 2 additions & 2 deletions FreeAPS/Sources/Modules/Settings/View/SettingsRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ extension Settings {
header: {
if let expirationDate = Bundle.main.profileExpiration {
Text(
"iAPS v\(state.versionNumber) (\(state.buildNumber))\nBranch: \(state.branch) \(state.copyrightNotice)" +
"Open-iAPS v\(state.versionNumber) (\(state.buildNumber))\nBranch: \(state.branch) \(state.copyrightNotice)" +
"\nBuild Expires: " + expirationDate
).textCase(nil)
} else {
Text(
"iAPS v\(state.versionNumber) (\(state.buildNumber))\nBranch: \(state.branch) \(state.copyrightNotice)"
"Open-iAPS v\(state.versionNumber) (\(state.buildNumber))\nBranch: \(state.branch) \(state.copyrightNotice)"
)
}
}
Expand Down
4 changes: 2 additions & 2 deletions FreeAPS/Sources/Services/Network/NightscoutAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ extension NightscoutAPI {
func checkConnection() -> AnyPublisher<Void, Swift.Error> {
struct Check: Codable, Equatable {
var eventType = "Note"
var enteredBy = "freeaps-x"
var notes = "iAPS connected"
var enteredBy = "Open-iAPS"
var notes = "Open-iAPS connected"
}
let check = Check()
var request = URLRequest(url: url.appendingPathComponent(Config.treatmentsPath))
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Services/WatchManager/GarminManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ final class BaseGarminManager: NSObject, GarminManager, Injectable {

init(resolver: Resolver) {
super.init()
connectIQ?.initialize(withUrlScheme: "freeaps-x", uiOverrideDelegate: self)
connectIQ?.initialize(withUrlScheme: "Open-iAPS", uiOverrideDelegate: self)
injectServices(resolver)
restoreDevices()
subscribeToOpenFromGarminConnect()
Expand Down
3 changes: 2 additions & 1 deletion fastlane/testflight.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ If you have created a Open-iAPS app in App Store Connect before, you can skip th
* Select "iOS".
* Select a name: this will have to be unique, so you may have to try a few different names here, but it will not be the name you see on your phone, so it's not that important.
* Select your primary language.
* Choose the bundle ID that matches `ru.artpancreas.TEAMID.FreeAPS`, with TEAMID matching your team id.
* Choose the bundle ID that matches the `BUNDLE_IDENTIFIER` in your `Config.xcconfig` file
* this is typically `org.nightscout.TEAMID.openiaps` with `TEAMID` matching your team id
* SKU can be anything; e.g. "123".
* Select "Full Access".
1. Click Create
Expand Down

0 comments on commit 8cd27c3

Please sign in to comment.