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

v6.3.0 Release #1301

Merged
merged 214 commits into from Jun 27, 2019
Merged
Show file tree
Hide file tree
Changes from 175 commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
1810336
Separated control session logic in SDLIAPTransport
NicoleYarroch Apr 16, 2019
db35421
Separated data session logic in SDLIAPTransport
NicoleYarroch Apr 17, 2019
ad88685
Fixed control/data sessions not reconnecting
NicoleYarroch Apr 18, 2019
0c493c0
Added documentation to SDLIAPTransport class
NicoleYarroch Apr 18, 2019
c26231c
Fixed broken BT/USB transport switch check
NicoleYarroch Apr 18, 2019
e06733f
Fixed test cases for SDLIAPControlSession class
NicoleYarroch Apr 18, 2019
f77bd71
Fixed protocol timer constant
NicoleYarroch Apr 18, 2019
87247ba
Refactoring SDLIAPTransport code
NicoleYarroch Apr 23, 2019
c678c24
Renamed connectionID from accessoryID
NicoleYarroch Apr 23, 2019
4adb933
Fixed SDLIAPTransport test cases
NicoleYarroch Apr 23, 2019
f0ba35d
Added documentation to SDLIAPTransport
NicoleYarroch Apr 23, 2019
dc68fbb
Fixed handler formatting in SDLIAPTransport classes
NicoleYarroch Apr 23, 2019
c90704d
Added SDLIAPDataSession test cases
NicoleYarroch Apr 24, 2019
bd0058e
Finished up SDLIAPDataSession test cases
NicoleYarroch Apr 24, 2019
d39b773
Refactored session init in SDLIAPTransport
NicoleYarroch Apr 24, 2019
73c7aee
Added documentation to SDLIAPTransport handlers
NicoleYarroch Apr 24, 2019
d523cea
Fixed USB/BT not working if control session opened
NicoleYarroch Apr 24, 2019
b930586
Keep background task alive
NicoleYarroch Apr 25, 2019
9e40901
Initial work on re-doing the soft button manager
joeljfischer Apr 25, 2019
c939ce6
Cleanup and fixes
joeljfischer Apr 26, 2019
dde10d3
Transition operation uses the SB Objects
joeljfischer May 2, 2019
1b4eaef
More test updates
joeljfischer May 3, 2019
cd44a87
Fis broken tests
joeljfischer May 3, 2019
b656990
Create Package file
May 3, 2019
8629f52
testing..
May 3, 2019
bedcdd0
fixed issue with products array
May 6, 2019
b80f03f
updating swift tools verison
May 6, 2019
a1f9fb7
testing a name change
May 6, 2019
5cf758f
no message
May 6, 2019
bb64813
no message
May 6, 2019
ee2980e
testing
May 6, 2019
7c52398
adding SDLswift as a Dependency
May 9, 2019
72a12d7
added comma
May 9, 2019
a85406f
dependency must come before path
May 9, 2019
3815bfe
Added delegate for control session
NicoleYarroch May 13, 2019
70d0658
Added delegate for data session
NicoleYarroch May 13, 2019
0fc6179
Deprecate RPC superclass initializers
joeljfischer May 14, 2019
b4e84a0
created new class to hold old,new,score to add and delete menu cells …
May 14, 2019
7fc4b95
Setting session to nil
NicoleYarroch May 14, 2019
8464d35
Fix the unit tests
joeljfischer May 14, 2019
283ea38
Sessions are now started
NicoleYarroch May 14, 2019
46add2e
Fixed test cases
NicoleYarroch May 14, 2019
5600b7f
Fixed documentation for control session class
NicoleYarroch May 14, 2019
32970a3
Fixed control session checking timer for `nil`
NicoleYarroch May 14, 2019
816e889
Fixed line spacing
NicoleYarroch May 14, 2019
ce82bdc
Refactoring control and data sessions
NicoleYarroch May 14, 2019
bb2f2db
Refactored SDLIAPTransport class
NicoleYarroch May 14, 2019
3e3e82e
Refactored the SDLIAPTransport class
NicoleYarroch May 14, 2019
6759cba
Cleanup starting SDLIAPTransport session
NicoleYarroch May 14, 2019
66fc63c
Add new classes to log file module
NicoleYarroch May 14, 2019
6da019b
Removed logs from IAPSession class
NicoleYarroch May 14, 2019
a4b2791
Removed redundant method in IAPControlSession method
NicoleYarroch May 14, 2019
818fe91
Added additional modules to the log file module
NicoleYarroch May 14, 2019
8dcff48
Added check if data session is established
NicoleYarroch May 14, 2019
849a7f6
Moved Algo logic into its own class updated cell compare to not use s…
May 14, 2019
f2910b9
Moved IAPSessionDelegate to data and control classes
NicoleYarroch May 14, 2019
022b223
WIP: will remove NSLogs when i make the finally commit, fixed an iss…
May 14, 2019
1c18e0b
Remove duplicate typedef Enum for MenuCellState , removed commented o…
May 14, 2019
398cf8b
Added missing documentation
NicoleYarroch May 15, 2019
8079fd8
Undoing changes to example apps to fix reconnects
NicoleYarroch May 15, 2019
4f0719d
More fixes for the reconnects in example apps
NicoleYarroch May 15, 2019
4bb3e97
Merge branch 'develop' into bugfix/issue_1239_iAPTransport_class_disc…
NicoleYarroch May 15, 2019
3ec70f0
moved some logic around to make testing quicker, added two test class…
May 15, 2019
c6f7ac3
added more unit tests to test more cases
May 15, 2019
e3d95d2
Cleaned up SDLIAPSession and added documentation
NicoleYarroch May 15, 2019
3eb9881
Renamed stopSession to destroySession
NicoleYarroch May 15, 2019
6d32ae6
making functions so they dont delete all cells but only a sub set and…
May 15, 2019
53bde97
Added documenatation to SDLIAPDataSession class
NicoleYarroch May 16, 2019
58987c3
Fix review issues
joeljfischer May 17, 2019
c794025
Restructure IAP Session / Transport relationships
joeljfischer May 17, 2019
35aa425
Merge branch 'develop' into bugfix/issue_1234_softbutton_multiple_states
joeljfischer May 17, 2019
1b38bd2
Fix documentation issues
joeljfischer May 17, 2019
0388880
Merge pull request #1262 from smartdevicelink/bugfix/issue_1204_hide_…
joeljfischer May 17, 2019
da195f1
Add RPC subscription helper methods
joeljfischer May 20, 2019
44fe2ec
Fix batching soft button manager updates
joeljfischer May 20, 2019
56db755
Review fixes
joeljfischer May 20, 2019
bd210be
fixed issue where handler was not being saved after the list is updat…
May 20, 2019
e8f84ab
Support and disambiguate outside GetSystemCapabilityResponses from in…
joeljfischer May 21, 2019
bf15b8a
Merge branch 'develop' into feature/issue-1229-SwiftPM
May 21, 2019
5255715
Fixing extra commented line
May 21, 2019
96f81e5
Merge pull request #1267 from smartdevicelink/bugfix/issue_1239_joel_…
NicoleYarroch May 21, 2019
0dd2255
Fixed example app crashing when lifecycle manager errors
NicoleYarroch May 21, 2019
a36bdb2
Added flag for transport disconnect
NicoleYarroch May 21, 2019
9419bd1
In progress capability observations
joeljfischer May 21, 2019
21e155b
Added documentation to SDLIAPSession class
NicoleYarroch May 22, 2019
7f548d9
Removed unused import
NicoleYarroch May 22, 2019
b547f99
Updating the readme file to tell devs that SDL now supports Accio and…
May 22, 2019
06ac820
Cleaning up SDLIAPSession and its subclasses
NicoleYarroch May 22, 2019
e46468c
Fixed log to use local var
NicoleYarroch May 22, 2019
762e2a3
Fixed broken iAP classes test cases
NicoleYarroch May 22, 2019
494e196
Cleaned up the SDLIAPSession class
NicoleYarroch May 22, 2019
ad27ed0
Cleaned up the control and data session classes
NicoleYarroch May 22, 2019
c080f3e
Merge pull request #1251 from smartdevicelink/bugfix/issue_1234_softb…
joeljfischer May 23, 2019
65b66c8
Fix obj-c example app issues
joeljfischer May 23, 2019
5687629
Updating Logs WIP will remove during final commit creating new delet…
May 23, 2019
a5b01f5
fixed issue where subcells to transfer ID was crashing , added old an…
May 23, 2019
d39ebc6
needed to set in progress to nil after we start an update for sub menus
May 23, 2019
c3c67ca
System Capability subscriptions
joeljfischer May 23, 2019
25f8f76
Fixed the file manager race condition
NicoleYarroch May 23, 2019
3fce4d2
Pass the capability instead of the manager into the callback
joeljfischer May 23, 2019
7292417
Fix an oversight
joeljfischer May 23, 2019
0002c55
Update BiSON dependency to v1.2.0
joeljfischer May 24, 2019
24adfae
Merge pull request #1271 from smartdevicelink/feature/issue_1257_sdlm…
joeljfischer May 24, 2019
6db5ffa
Merge pull request #1281 from smartdevicelink/bugfix/issue_1280_bson_…
joeljfischer May 24, 2019
12c0f92
added a flag to turn dynamic updates on or off, updated unit tests
May 28, 2019
eb51c54
fixed pr issue
May 28, 2019
9824b27
Merge pull request #1273 from smartdevicelink/feature/issue-1229-SwiftPM
joeljfischer May 28, 2019
60842c4
Merge branch 'develop' into bugfix/issue_1239_iAPTransport_class_disc…
joeljfischer May 28, 2019
1e7b634
Fixed SDL log statements
NicoleYarroch May 28, 2019
5307621
Merge branch 'develop' into feature/issue_1222_align_systemcapability…
joeljfischer May 28, 2019
e767e9c
Fix tests
joeljfischer May 28, 2019
3b237ab
More test fixes
joeljfischer May 28, 2019
7f0f28f
Merge pull request #1277 from smartdevicelink/bugfix/issue_1264_file_…
joeljfischer May 28, 2019
70deece
Merge pull request #1279 from smartdevicelink/feature/issue_1222_alig…
joeljfischer May 29, 2019
3f60de8
Merge branch 'develop' into feature/issue-1144-Dynamic-Menu-Manager
joeljfischer May 29, 2019
200d5b1
Cleaned up destroying the session
NicoleYarroch May 29, 2019
a730f9a
Added test cases for SDLIAPConstants class
NicoleYarroch May 29, 2019
107a28b
Renamed methods to indicate they are private
NicoleYarroch May 29, 2019
be4a932
Removed extra line
NicoleYarroch May 29, 2019
2f36335
Renamed the stop session methods
NicoleYarroch May 29, 2019
86b4b4d
Fixed assert description for starting stream
NicoleYarroch May 29, 2019
cfff2c4
Renamed retry delegate methods
NicoleYarroch May 29, 2019
237d52a
Renamed data session connected delegate method
NicoleYarroch May 29, 2019
6c4bf0d
Renamed data session delegate data received method
NicoleYarroch May 29, 2019
71b807f
Examples apps restarted if the manager still exists
NicoleYarroch May 29, 2019
3a8bd00
Update choice set log
joeljfischer May 29, 2019
0047bf7
Fixed spelling, SDL logs
NicoleYarroch May 29, 2019
2e12a55
Added more SDL logs
NicoleYarroch May 29, 2019
cc7f00c
Fix: SDLAudioFile must be public
joeljfischer May 29, 2019
580320b
Cleaned up the data session’s write to output stream
NicoleYarroch May 29, 2019
ea18212
Use new BSON method
joeljfischer May 29, 2019
6950fd9
Merge branch 'develop' into bugfix/issue_1239_iAPTransport_class_disc…
NicoleYarroch May 30, 2019
fff87c1
Add audio data queueing to the audio stream manager
joeljfischer May 30, 2019
0bc09b6
Create and call proper audio stream manager delegate methods
joeljfischer May 30, 2019
3779a2b
Added SDL log for debugging output stream writes
NicoleYarroch May 30, 2019
b4f86f9
Fixed many PR isues
May 30, 2019
d69416b
removed old files that have been renamed
May 30, 2019
d2b3058
removing old commented code
May 30, 2019
caa0069
fixing formatting
May 30, 2019
09dc707
AudioStreamManager tests
joeljfischer May 30, 2019
574e69e
changed enumerateObjectsUsingBlock to a for loop
May 30, 2019
6e83a56
Cleaned up the IAP classes private methods
NicoleYarroch May 30, 2019
9fa2c89
added test to compare cells
May 30, 2019
0f3f759
Fix position not being set on SDLChoiceSet VRHelpList
joeljfischer May 30, 2019
3be915d
added unit test
May 31, 2019
87f6a91
Fix using uninitialized objects on pre protocol v5 head units
joeljfischer May 31, 2019
3425890
Merge pull request #1292 from smartdevicelink/bugfix/issue_1291_fix_c…
joeljfischer May 31, 2019
ff55c38
Refactored example app starting manager methods
NicoleYarroch May 31, 2019
f8534bd
Renamed control session timeout timer methods
NicoleYarroch May 31, 2019
8b68e7b
Refactored stream errored on write in data session
NicoleYarroch May 31, 2019
12ee2a0
Update SmartDeviceLink/SDLIAPTransport.m
NicoleYarroch May 31, 2019
8ce276c
Merge pull request #1287 from smartdevicelink/feature/issue_1285_prev…
joeljfischer May 31, 2019
2a2a973
Merge branch 'develop' into feature/issue_1275_audiostreammanager_pus…
joeljfischer May 31, 2019
eab92bb
Fix audio stream manager tests
joeljfischer May 31, 2019
be493ea
Force ChoiceSets to work on Ford Sync Gen 3
joeljfischer May 31, 2019
9961a28
Refactored the create session methods
NicoleYarroch May 31, 2019
bde8a7d
Renamed transportDisconnected var
NicoleYarroch May 31, 2019
74c5aba
Merge branch 'bugfix/issue_1239_iAPTransport_class_disconnect_cleanup…
NicoleYarroch May 31, 2019
335ca76
Fixed compile error
NicoleYarroch May 31, 2019
e31c41e
Removed unused var
NicoleYarroch Jun 4, 2019
fc10172
Refactored protocol string check
NicoleYarroch Jun 4, 2019
888ea1a
added unit tests to test callbacks for filemanager , fixed issue with…
Jun 4, 2019
e16e360
Merge pull request #1248 from smartdevicelink/bugfix/issue_1239_iAPTr…
joeljfischer Jun 4, 2019
d996724
Update documentation on AudioStreamManager
joeljfischer Jun 5, 2019
fbb9481
Note new AudioStreamManager method
joeljfischer Jun 5, 2019
b7f13d1
Operation finished if no text or image buttons sent
NicoleYarroch Jun 5, 2019
dd9bb6f
Added test cases
NicoleYarroch Jun 5, 2019
02465d1
addbetter documentation , added unit tests , fixes some minor PR issues
Jun 5, 2019
03c394a
Merge pull request #1293 from smartdevicelink/bugfix/issue_1290_sync3…
joeljfischer Jun 5, 2019
762a058
Merge pull request #1289 from smartdevicelink/feature/issue_1275_audi…
joeljfischer Jun 5, 2019
daa57de
Merge pull request #1286 from smartdevicelink/bugfix/issue_1283_sdlau…
joeljfischer Jun 5, 2019
a3543ec
Merge pull request #1295 from smartdevicelink/bugfix/issue_1294_softb…
joeljfischer Jun 6, 2019
7b39723
fixing pr issues, formatting, spelling, documentation
Jun 10, 2019
63f9648
Merge pull request #1282 from smartdevicelink/feature/issue-1144-Dyna…
joeljfischer Jun 10, 2019
8b13335
Fix missing parameter name
joeljfischer Jun 14, 2019
10362ef
Fix documentation
joeljfischer Jun 17, 2019
167bce8
Added missing apostrophe
NicoleYarroch Jun 17, 2019
c365f29
Merge pull request #1303 from smartdevicelink/bugfix/issue_1302_broke…
joeljfischer Jun 17, 2019
07f49b6
Fix `runScore` being a property and several method / variable names
joeljfischer Jun 17, 2019
5608ac0
Fix test
joeljfischer Jun 18, 2019
c3970e6
Merge pull request #1307 from smartdevicelink/bugfix/issue_1306_menu_…
joeljfischer Jun 18, 2019
6f91e9d
Fixes #1308
joeljfischer Jun 18, 2019
e8c3889
Merge branch 'develop' into bugfix/issue_1308_queue_choice_during_vr_…
joeljfischer Jun 18, 2019
1c45135
Merge branch 'feature/issue-1274-Documentation-for-Accio-Support' int…
joeljfischer Jun 18, 2019
234faa8
Merge pull request #1309 from smartdevicelink/bugfix/issue_1308_queue…
joeljfischer Jun 18, 2019
e4bd959
quick fix so setting the menu for the first time adds the cells with …
Jun 19, 2019
37a3d66
fixing unneeded change
Jun 19, 2019
0329267
undoing a line move
Jun 19, 2019
06dc401
since old cells is empty at this point and this is using the old meth…
Jun 20, 2019
3c4b6dd
make SDLSecondaryTransportManager have strong reference to primaryPro…
Jun 21, 2019
c5cb8a3
Merge pull request #1314 from t-yoshii/fix/make-reference-to-primaryP…
joeljfischer Jun 21, 2019
d9dee5d
Send cells after image have been uploaded if no images just send cell…
Jun 24, 2019
960105d
Removed registration for EAAcessory notifications
NicoleYarroch Jun 24, 2019
b555ed8
background tasks now use weakself
NicoleYarroch Jun 24, 2019
0e14619
Removed unnecessary import
NicoleYarroch Jun 24, 2019
31bf850
Transport dealloc does not end the background task
NicoleYarroch Jun 24, 2019
55d9180
Background task now started in init of IAPTransport
NicoleYarroch Jun 24, 2019
2d1a812
Moved the background task to the LifecycleManager
NicoleYarroch Jun 25, 2019
2442637
Background task killed on dealloc
NicoleYarroch Jun 25, 2019
0b507d3
Fix setting a second menu
joeljfischer Jun 25, 2019
cb4f94e
Merge pull request #1313 from smartdevicelink/bugfix/issue-1312-Cell-…
joeljfischer Jun 25, 2019
bbe955b
Added more detail to SDL logs
NicoleYarroch Jun 25, 2019
0c1f817
Update SmartDeviceLink/SDLLifecycleManager.m
NicoleYarroch Jun 25, 2019
2ca35f4
Moved background task logic to own class
NicoleYarroch Jun 25, 2019
db9ade2
Removed dealloc from SDLManager
NicoleYarroch Jun 25, 2019
75d3b6e
Added class
NicoleYarroch Jun 25, 2019
14e1f5e
Merge branch 'bugfix/issue_1316_background_task_session_creation_fail…
NicoleYarroch Jun 25, 2019
c0b0457
renamed var
NicoleYarroch Jun 25, 2019
67fab4f
add nil check of eaSession at SDLIAPDataSession#startSession
Jun 26, 2019
8a3f94e
Moved documentation to Background Task header file
NicoleYarroch Jun 26, 2019
b8098be
Moved dealloc to BackgroundTaskManager
NicoleYarroch Jun 26, 2019
b6a19fc
Merge pull request #1317 from smartdevicelink/bugfix/issue_1316_backg…
joeljfischer Jun 26, 2019
7fa2820
Merge pull request #1322 from t-yoshii/fix/avoid-assersion-crash-afte…
joeljfischer Jun 26, 2019
76d6cd1
Update for v6.3.0
joeljfischer Jun 27, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions Example Apps/Example ObjC/ButtonManager.m
Expand Up @@ -135,6 +135,9 @@ - (SDLSoftButtonObject *)sdlex_softButtonImagesVisibleWithManager:(SDLManager *)
SDLSoftButtonObject *object = [weakself.sdlManager.screenManager softButtonObjectNamed:ImagesVisibleSoftButton];
[object transitionToNextState];

SDLSoftButtonObject *textButton = [weakself.sdlManager.screenManager softButtonObjectNamed:TextVisibleSoftButton];
[textButton transitionToNextState];

SDLLogD(@"Image visibility soft button press fired %d", weakself.imagesEnabled);
}];

Expand Down
15 changes: 11 additions & 4 deletions Example Apps/Example ObjC/ProxyManager.m
Expand Up @@ -54,7 +54,7 @@ - (instancetype)init {
return self;
}

- (void)startManager {
- (void)sdlex_startManager {
__weak typeof (self) weakSelf = self;
[self.sdlManager startWithReadyHandler:^(BOOL success, NSError * _Nullable error) {
if (!success) {
Expand All @@ -76,7 +76,10 @@ - (void)startManager {
}

- (void)stopConnection {
[self.sdlManager stop];
dispatch_async(dispatch_get_main_queue(), ^{
[self.sdlManager stop];
});

[self sdlex_updateProxyState:ProxyStateStopped];
}

Expand Down Expand Up @@ -106,10 +109,14 @@ + (SDLLifecycleConfiguration *)sdlex_tcpLifecycleConfiguration {
}

- (void)sdlex_setupConfigurationWithLifecycleConfiguration:(SDLLifecycleConfiguration *)lifecycleConfiguration {
if (self.sdlManager != nil) {
// Manager already created, just start it again.
[self sdlex_startManager];
return;
}
SDLConfiguration *config = [SDLConfiguration configurationWithLifecycle:lifecycleConfiguration lockScreen:[SDLLockScreenConfiguration enabledConfigurationWithAppIcon:[UIImage imageNamed:ExampleAppLogoName] backgroundColor:nil] logging:[self.class sdlex_logConfiguration] fileManager:[SDLFileManagerConfiguration defaultConfiguration]];
self.sdlManager = [[SDLManager alloc] initWithConfiguration:config delegate:self];

[self startManager];
[self sdlex_startManager];
}

+ (SDLLifecycleConfiguration *)sdlex_setLifecycleConfigurationPropertiesOnConfiguration:(SDLLifecycleConfiguration *)config {
Expand Down
4 changes: 2 additions & 2 deletions Example Apps/Example ObjC/VehicleDataManager.m
Expand Up @@ -37,7 +37,7 @@ - (instancetype)initWithManager:(SDLManager *)manager refreshUIHandler:(RefreshU
_refreshUIHandler = refreshUIHandler;
_vehicleOdometerData = @"";

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(vehicleDataNotification:) name:SDLDidReceiveVehicleDataNotification object:nil];
[_sdlManager subscribeToRPC:SDLDidReceiveVehicleDataNotification withObserver:self selector:@selector(vehicleDataNotification:)];
[self sdlex_resetOdometer];

return self;
Expand Down Expand Up @@ -112,7 +112,7 @@ - (void)vehicleDataNotification:(SDLRPCNotificationNotification *)notification {
}

SDLOnVehicleData *onVehicleData = (SDLOnVehicleData *)notification.notification;
self.vehicleOdometerData = [NSString stringWithFormat:@"%@: %@ kph", VehicleDataOdometerName, onVehicleData.odometer];
self.vehicleOdometerData = [NSString stringWithFormat:@"%@: %@ km", VehicleDataOdometerName, onVehicleData.odometer];

if (!self.refreshUIHandler) { return; }
self.refreshUIHandler();
Expand Down
11 changes: 10 additions & 1 deletion Example Apps/Example Swift/ProxyManager.swift
Expand Up @@ -43,6 +43,12 @@ extension ProxyManager {
///
/// - Parameter connectionType: The type of transport layer to use.
func start(with proxyTransportType: ProxyTransportType) {
guard sdlManager == nil else {
// Manager already created, just start it again.
startManager()
return
}

delegate?.didChangeProxyState(ProxyState.searching)
sdlManager = SDLManager(configuration: proxyTransportType == .iap ? ProxyManager.connectIAP() : ProxyManager.connectTCP(), delegate: self)
startManager()
Expand All @@ -55,7 +61,10 @@ extension ProxyManager {
return
}

sdlManager.stop()
DispatchQueue.main.async { [weak self] in
self?.sdlManager.stop()
}

delegate?.didChangeProxyState(.stopped)
}
}
Expand Down
2 changes: 1 addition & 1 deletion Example Apps/Example Swift/VehicleDataManager.swift
Expand Up @@ -23,7 +23,7 @@ class VehicleDataManager: NSObject {
super.init()

resetOdometer()
NotificationCenter.default.addObserver(self, selector: #selector(vehicleDataNotification(_:)), name: .SDLDidReceiveVehicleData, object: nil)
self.sdlManager.subscribe(to: .SDLDidReceiveVehicleData, observer: self, selector: #selector(vehicleDataNotification(_:)))
}
}

Expand Down
23 changes: 23 additions & 0 deletions Package.swift
@@ -0,0 +1,23 @@
// swift-tools-version:5.0
import PackageDescription

let package = Package(
name: "SmartDeviceLink",
products: [
.library(name: "SmartDeviceLink", targets: ["SmartDeviceLink"]),
.library(name: "SmartDeviceLinkSwift", targets: ["SmartDeviceLinkSwift"])
],
targets: [
.target(
name: "SmartDeviceLink",
path: "SmartDeviceLink"
),
.target(
name: "SmartDeviceLinkSwift",
dependencies: [
"SmartDeviceLink"
],
path: "SmartDeviceLinkSwift"
),
]
)
4 changes: 3 additions & 1 deletion SmartDeviceLink-iOS.podspec
Expand Up @@ -7,7 +7,7 @@ s.homepage = "https://github.com/smartdevicelink/SmartDeviceLink-iOS"
s.license = { :type => "New BSD", :file => "LICENSE" }
s.author = { "SmartDeviceLink Team" => "developer@smartdevicelink.com" }
s.platform = :ios, "8.0"
s.dependency 'BiSON', '~> 1.1.1'
s.dependency 'BiSON', '~> 1.2.0'
s.source = { :git => "https://github.com/smartdevicelink/sdl_ios.git", :tag => s.version.to_s }
s.requires_arc = true
s.resource_bundles = { 'SmartDeviceLink' => ['SmartDeviceLink/Assets/**/*'] }
Expand Down Expand Up @@ -42,6 +42,7 @@ ss.public_header_files = [
'SmartDeviceLink/SDLArtwork.h',
'SmartDeviceLink/SDLAudioControlData.h',
'SmartDeviceLink/SDLAudioControlCapabilities.h',
'SmartDeviceLink/SDLAudioFile.h',
'SmartDeviceLink/SDLAudioPassThruCapabilities.h',
'SmartDeviceLink/SDLAudioStreamingState.h',
'SmartDeviceLink/SDLAudioStreamingIndicator.h',
Expand Down Expand Up @@ -204,6 +205,7 @@ ss.public_header_files = [
'SmartDeviceLink/SDLMediaServiceManifest.h',
'SmartDeviceLink/SDLMediaType.h',
'SmartDeviceLink/SDLMenuCell.h',
'SmartDeviceLink/SDLMenuManagerConstants.h,
'SmartDeviceLink/SDLMenuParams.h',
'SmartDeviceLink/SDLMetadataTags.h',
'SmartDeviceLink/SDLMetadataType.h',
Expand Down