Skip to content

Commit

Permalink
fix: Rename the app to Symbolic and update the bundle identifier (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley authored Nov 4, 2022
1 parent f195a3a commit 69a8f02
Show file tree
Hide file tree
Showing 48 changed files with 104 additions and 102 deletions.
4 changes: 2 additions & 2 deletions ExportOptions.plist
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<string>app-store</string>
<key>provisioningProfiles</key>
<dict>
<key>uk.co.inseven.iconic</key>
<string>Iconic Mac App Store Profile</string>
<key>uk.co.inseven.symbolic</key>
<string>Symbolic Mac App Store Profile</string>
</dict>
<key>signingCertificate</key>
<string>Apple Distribution</string>
Expand Down

Large diffs are not rendered by default.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ extension Color: Codable {

let nsColor = NSColor(self)
guard let deviceColor = nsColor.usingColorSpace(.deviceRGB) else {
throw IconicError.invalidColorspace
throw SymbolicError.invalidColorspace
}
deviceColor.getRed(&red, green: &green, blue: &blue, alpha: &alpha)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions Iconic/Info.plist → Symbolic/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<string>Default</string>
<key>LSItemContentTypes</key>
<array>
<string>uk.co.inseven.iconic.icon</string>
<string>uk.co.inseven.symbolic.icon</string>
</array>
</dict>
</array>
Expand All @@ -28,16 +28,16 @@
<string>public.content</string>
</array>
<key>UTTypeDescription</key>
<string>Iconic Icon</string>
<string>Symbolic Icon File</string>
<key>UTTypeIcons</key>
<dict/>
<key>UTTypeIdentifier</key>
<string>uk.co.inseven.iconic.icon</string>
<string>uk.co.inseven.symbolic.icon</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>iconic</string>
<string>symbolic</string>
</array>
</dict>
</dict>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Iconic/Models/Icon.swift → Symbolic/Models/Icon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import SwiftUI
import UniformTypeIdentifiers

extension UTType {
static let iconDocument = UTType(exportedAs: "uk.co.inseven.iconic.icon")
static let iconDocument = UTType(exportedAs: "uk.co.inseven.symbolic.icon")
}

final class IconDocument: ReferenceFileDocument {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import Foundation

enum IconicError: Error {
enum SymbolicError: Error {

case invalidColorspace
case exportFailure
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions Iconic/IconicApp.swift → Symbolic/SymbolicApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import SwiftUI
import Diligence

@main
struct IconicApp: App {
struct SymbolicApp: App {

var body: some Scene {

Expand All @@ -33,8 +33,8 @@ struct IconicApp: App {
ContentView()
}

About(repository: "jbmorley/iconic", copyright: "Copyright © 2022 Jason Morley") {
Action("GitHub", url: URL(string: "https://github.com/jbmorley/iconic")!)
About(repository: "jbmorley/symbolic", copyright: "Copyright © 2022 Jason Morley") {
Action("GitHub", url: URL(string: "https://github.com/jbmorley/symbolic")!)
} acknowledgements: {
Acknowledgements("Developers") {
Credit("Jason Morley", url: URL(string: "https://jbmorley.co.uk"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ struct ExportToolbar: CustomizableToolbarContent {
let scaledSize = size * CGFloat(scale)
let icon = IconView(icon: document, size: scaledSize, renderShadow: shadow, isShadowFlipped: true)
guard let data = icon.snapshot() else {
throw IconicError.exportFailure
throw SymbolicError.exportFailure
}
let formatter = NumberFormatter()
formatter.minimumFractionDigits = 0
formatter.maximumFractionDigits = 2
guard let sizeString = formatter.string(from: NSNumber(value: size)) else {
throw IconicError.exportFailure
throw SymbolicError.exportFailure
}
let scaleString = scale > 1 ? String(format: "@%dx", scale) : ""
let url = directoryURL.appendingPathComponent("icon_\(sizeString)x\(sizeString)\(scaleString)", conformingTo: .png)
Expand All @@ -91,13 +91,13 @@ struct ExportToolbar: CustomizableToolbarContent {
let scaledSize = size * CGFloat(scale)
let icon = MacIconView(icon: document, size: scaledSize, isShadowFlipped: true)
guard let data = icon.snapshot() else {
throw IconicError.exportFailure
throw SymbolicError.exportFailure
}
let formatter = NumberFormatter()
formatter.minimumFractionDigits = 0
formatter.maximumFractionDigits = 2
guard let sizeString = formatter.string(from: NSNumber(value: size)) else {
throw IconicError.exportFailure
throw SymbolicError.exportFailure
}
let scaleString = scale > 1 ? String(format: "@%dx", scale) : ""
let url = directoryURL.appendingPathComponent("icon_\(sizeString)x\(sizeString)\(scaleString)", conformingTo: .png)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
// SOFTWARE.

import XCTest
@testable import Iconic
@testable import Symbolic

final class IconicTests: XCTestCase {
final class SymbolicTests: XCTestCase {

override func setUpWithError() throws {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import XCTest

final class IconicUITests: XCTestCase {
final class SymbolicUITests: XCTestCase {

override func setUpWithError() throws {
continueAfterFailure = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import XCTest

final class IconicUITestsLaunchTests: XCTestCase {
final class SymbolicUITestsLaunchTests: XCTestCase {

override class var runsForEachTargetApplicationUIConfiguration: Bool {
true
Expand Down
Binary file not shown.
12 changes: 6 additions & 6 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ BUILD_DIRECTORY="${ROOT_DIRECTORY}/build"
TEMPORARY_DIRECTORY="${ROOT_DIRECTORY}/temp"

KEYCHAIN_PATH="${TEMPORARY_DIRECTORY}/temporary.keychain"
ARCHIVE_PATH="${BUILD_DIRECTORY}/Iconic.xcarchive"
ARCHIVE_PATH="${BUILD_DIRECTORY}/Symbolic.xcarchive"
ENV_PATH="${ROOT_DIRECTORY}/.env"

RELEASE_SCRIPT_PATH="${SCRIPTS_DIRECTORY}/release.sh"
Expand Down Expand Up @@ -74,7 +74,7 @@ fi

function xcode_project {
xcodebuild \
-project Iconic.xcodeproj "$@"
-project Symbolic.xcodeproj "$@"
}

function build_scheme {
Expand Down Expand Up @@ -129,12 +129,12 @@ echo "$APPLE_DISTRIBUTION_CERTIFICATE_PASSWORD" | build-tools import-base64-cert
echo "$MACOS_DEVELOPER_INSTALLER_CERTIFICATE_PASSWORD" | build-tools import-base64-certificate --password "$KEYCHAIN_PATH" "$MACOS_DEVELOPER_INSTALLER_CERTIFICATE_BASE64"

# Install the provisioning profiles.
build-tools install-provisioning-profile "Iconic_Mac_App_Store_Profile.provisionprofile"
build-tools install-provisioning-profile "Symbolic_Mac_App_Store_Profile.provisionprofile"

# Build and archive the macOS project.
sudo xcode-select --switch "$MACOS_XCODE_PATH"
xcode_project \
-scheme "Iconic" \
-scheme "Symbolic" \
-config Release \
-archivePath "$ARCHIVE_PATH" \
OTHER_CODE_SIGN_FLAGS="--keychain=\"${KEYCHAIN_PATH}\"" \
Expand All @@ -147,9 +147,9 @@ xcodebuild \
-exportPath "$BUILD_DIRECTORY" \
-exportOptionsPlist "ExportOptions.plist"

APP_BASENAME="Iconic.app"
APP_BASENAME="Symbolic.app"
APP_PATH="$BUILD_DIRECTORY/$APP_BASENAME"
PKG_PATH="$BUILD_DIRECTORY/Iconic.pkg"
PKG_PATH="$BUILD_DIRECTORY/Symbolic.pkg"
#
# # Validate the macOS build.
xcrun altool --validate-app \
Expand Down

0 comments on commit 69a8f02

Please sign in to comment.