Skip to content

Commit b439ff0

Browse files
committed
Merge pull request #2 from SoundwaveApp/1.1
1.1
2 parents 2873a83 + 5011298 commit b439ff0

17 files changed

Lines changed: 118 additions & 55 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_STORE

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Change Log
2+
All notable changes to this project will be documented in this file.
3+
`Shine-iOS` adheres to [Semantic Versioning](http://semver.org/).
4+
5+
---
6+
## [1.1](https://github.com/SoundwaveApp/Shine-iOS/releases/tag/1.1) (2015-07-28)
7+
8+
#### What's New
9+
10+
* Support for contacts syncing
11+
* Support for location capture
12+
13+
14+
## [1.0](https://github.com/SoundwaveApp/Shine-iOS/releases/tag/1.0) (2015-07-23)
15+
16+
* Shine SDK initial version
17+

LICENSE.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2015 Soundwave
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

README.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This guide will walk you through adding Shine to your iOS application.
66
##Getting started##
77

88

9-
To begin using Shine you will need to acquire your unique application key. Currently these applications keys are given out on an ad-hoc basis by Soundwave. Please contact Soundwave if you have not received your key or would like to enquire about receiving a key.
9+
To begin using Shine you will need to acquire your unique application key. Currently these applications keys are given out on an ad-hoc basis by Soundwave. Please contact [Soundwave](mailto:brendan@soundwave.com) if you have not received your key or would like to enquire about receiving a key.
1010

1111
Check out the example Shine app above for help getting started.
1212

@@ -15,42 +15,42 @@ Check out the example Shine app above for help getting started.
1515
Shine SDK requires iOS 7.1+
1616

1717
###Cocoapods Installation###
18-
Shine can be installed using [Cocoapods](http://cocoapods.org). Simple add the following to your Podfile and run _pod install_.
18+
Shine can be installed using [Cocoapods](http://cocoapods.org). Simple add the following to your Podfile and run `pod install`.
1919
```bash
2020

21-
pod 'Shine', '~>1.0'
21+
pod 'Shine', '~>1.1'
2222
```
2323

2424
###Manual Installation###
2525

26-
Shine SDK needs to be installed manually.
26+
Shine SDK can also be installed manually.
2727

28-
1. Download the latest shine from [Github](https://github.com/SoundwaveApp/Shine-iOS/tree/master/Shine.framework)
28+
1. Download the latest Shine framework from the root folder of this repository.
2929
2. Drag Shine.framework into your Xcode project, ticking the “Copy items if needed” checkbox.
3030

3131
**Add Other Linker Flag**
3232

3333
3. Select your Xcode project in the file navigator sidebar.
34-
4. Select your project, then it’s “Build Settings" Tab.
34+
4. In the main pane, select your project, and then go to the “Build Settings" Tab.
3535
5. Search for “Other Linker Flags”.
3636
6. Double click the “Other Linker Flags” row’s value area, on the right side. A pop-up should appear.
3737
7. Add “-ObjC” by pressing the + button if it is hasn’t already been added
3838

3939
![linker](https://cloud.githubusercontent.com/assets/3185423/8828333/841a2ed8-3089-11e5-8434-cb2e111eb12c.png)
4040

4141

42-
#Initializing Shine#
42+
##Initializing Shine##
4343

4444

45-
To begin using shine follow these steps:
45+
To begin using Shine follow these steps:
4646

4747
* Import Shine into your `AppDelegate` class
4848
```objective-c
4949

5050
#import <Shine/Shine.h>
5151
```
5252

53-
* Add the following to your method `willFinishLaunchingWithOptions`. At this point you will need to provide your unique application key which is available by contacting Soundwave.
53+
* Add the following to your method `willFinishLaunchingWithOptions`. At this point you will need to provide your unique application key which is available by contacting [Soundwave](mailto:brendan@soundwave.com).
5454

5555
```objective-c
5656

@@ -63,7 +63,7 @@ To begin using shine follow these steps:
6363
Once you have added this code, Shine will start capturing data once your app launches.
6464

6565

66-
#User Registration#
66+
##User Registration##
6767

6868

6969
You can capture user registration data by adding the following code to your app:
@@ -82,9 +82,12 @@ shineUser.email = @"john.smith@soundwave.com";
8282
...
8383
```
8484
85-
#Optional Integration Points#
85+
##Optional Integration Points##
86+
8687
The following Shine integration points are not mandatory when using Shine.
87-
##Location Capture##
88+
89+
###Location Capture###
90+
8891
Shine can capture a device's location if the host app has the required location services permissions.
8992
To capture location data, you need to add the following code to a class that conforms to the CLLocationDelegate protocol.
9093
```objective-c
@@ -97,7 +100,8 @@ Shine location tracking works for both _**kCLAuthorizationStatusAuthorizedAlways
97100

98101
An example of capturing location data is available in the example app.
99102

100-
##Contacts Syncing##
103+
###Contacts Syncing###
104+
101105
Shine can capture a device's contacts if the host app has the required contacts access permissions.
102106
```objective-c
103107
ABAddressBookRequestAccessWithCompletion(ABAddressBookCreateWithOptions(nil, nil), ^(bool granted, CFErrorRef error) {
@@ -110,7 +114,7 @@ ABAddressBookRequestAccessWithCompletion(ABAddressBookCreateWithOptions(nil, nil
110114
111115
An example of syncing contacts data is available in the example app.
112116
113-
#Troubleshooting#
117+
##Troubleshooting##
114118
115119
**Q**. _I don't think Shine is capturing any data_
116120
@@ -125,15 +129,16 @@ An example of syncing contacts data is available in the example app.
125129
}
126130
```
127131

128-
--------
132+
---
129133

130134
**Q**. _I get an error "Undefined symbols for architecture"_
131135

132136
![Error](https://cloud.githubusercontent.com/assets/3185423/8828356/9d7f3cf6-3089-11e5-8ac7-4973e4266067.png)
133137

134138
**A**. Make sure you have added `-ObjC` to your **Other Linker Flags**
135139

136-
-------
140+
---
141+
137142
**Q**. _I get an error "*Shine Authorization Failed: Please Enter A Valid Developer Key*"_
138143

139144
**A**. Make sure you have a valid Developer Key and have entered it correctly. Please contact Soundwave to obtain a Developer Key.

Shine.framework/Versions/A/Headers/Shine.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
@import UIKit;
99
@import Foundation;
10+
@import CoreLocation;
11+
1012

1113
//! Project version number for Shine.
1214
FOUNDATION_EXPORT double ShineVersionNumber;
@@ -24,6 +26,11 @@ FOUNDATION_EXPORT const unsigned char ShineVersionString[];
2426

2527
+ (void)setDeveloperKey:(NSString *)token;
2628
+ (void)registerUserDetails:(SWUser *)userDetails;
29+
+ (void)updateLocation:(NSArray *)locations;
30+
31+
#pragma mark - Permissions
32+
33+
+ (void)syncContacts;
2734

2835

2936
#pragma mark - Debug
-1 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
897 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)