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

Reorganise the project #1772

Merged
merged 5 commits into from
Dec 12, 2023
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
18 changes: 12 additions & 6 deletions intents.yml → Apps/RuuviStation/Intents/target.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
targets:
station.intents:
type: app-extension
platform: iOS
info:
path: intents/Info.plist
path: Info.plist
properties:
NSExtension:
NSExtensionAttributes:
Expand All @@ -19,7 +20,7 @@ targets:
NSHumanReadableCopyright: Copyright © 2023 Ruuvi Innovations Oy. All rights reserved.
settings:
base:
CODE_SIGN_ENTITLEMENTS: station_intents.entitlements
CODE_SIGN_ENTITLEMENTS: Apps/RuuviStation/Intents/Sources/Intents.entitlements
configs:
Alpha:
CODE_SIGN_IDENTITY: "iPhone Distribution"
Expand All @@ -32,10 +33,15 @@ targets:
CODE_SIGN_IDENTITY: "iPhone Distribution"
PROVISIONING_PROFILE_SPECIFIER: "match AdHoc com.ruuvi.station.intents"
sources:
- path: intents
- path: ruuvi-widgets
excludes:
- Info.plist
- path: Sources
name: Intents
excludes:
- "*.entitlements"
- Info.plist
- path: ../Widgets/Sources/
excludes:
- "*.entitlements"
- Info.plist
dependencies:
- package: Swinject
- package: BTKit
Expand Down
File renamed without changes.
File renamed without changes.
15 changes: 10 additions & 5 deletions pnservice.yml → ...uviStation/NotificationService/target.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
targets:
station.pnservice:
type: app-extension
platform: iOS
info:
path: pnservice/Info.plist
path: Info.plist
properties:
NSExtension:
NSExtensionPointIdentifier: com.apple.usernotifications.service
Expand All @@ -15,7 +16,7 @@ targets:
NSHumanReadableCopyright: Copyright © 2023 Ruuvi Innovations Oy. All rights reserved.
settings:
base:
CODE_SIGN_ENTITLEMENTS: pnservice.entitlements
CODE_SIGN_ENTITLEMENTS: Apps/RuuviStation/NotificationService/Sources/NotificationService.entitlements
configs:
Alpha:
CODE_SIGN_IDENTITY: "iPhone Distribution"
Expand All @@ -28,7 +29,11 @@ targets:
CODE_SIGN_IDENTITY: "iPhone Distribution"
PROVISIONING_PROFILE_SPECIFIER: "match AdHoc com.ruuvi.station.pnservice"
sources:
- path: pnservice
- path: Sources
name: NotificationService
excludes:
- "*.entitlements"
- Info.plist
resources:
- path: station/Resources/Strings/
- path: station/Resources/Sounds/
- path: ../Sources/Resources/Strings/
- path: ../Sources/Resources/Sounds/
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Foundation

struct Networking: Codable {
var OpenWeatherMapAPIKey: String
var RuuviCloudURL: String
var RuuviCloudURLDev: String
}
Expand All @@ -11,7 +10,6 @@ enum AppAssemblyConstants {
static let xml = FileManager.default.contents(atPath: networkingPath)!
static let networkingPlist = try! PropertyListDecoder().decode(Networking.self, from: xml)

static let openWeatherMapApiKey = networkingPlist.OpenWeatherMapAPIKey
static let ruuviCloudUrl = networkingPlist.RuuviCloudURL
static let ruuviCloudUrlDev = networkingPlist.RuuviCloudURLDev
static let simpleWidgetKindId = "ruuvi.simpleWidget"
Expand Down
Loading