-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from SoundwaveApp/1.1
1.1
- Loading branch information
Showing
17 changed files
with
118 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_STORE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
`Shine-iOS` adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
--- | ||
## [1.1](https://github.com/SoundwaveApp/Shine-iOS/releases/tag/1.1) (2015-07-28) | ||
|
||
#### What's New | ||
|
||
* Support for contacts syncing | ||
* Support for location capture | ||
|
||
|
||
## [1.0](https://github.com/SoundwaveApp/Shine-iOS/releases/tag/1.0) (2015-07-23) | ||
|
||
* Shine SDK initial version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2015 Soundwave | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ This guide will walk you through adding Shine to your iOS application. | |
##Getting started## | ||
|
||
|
||
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. | ||
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:[email protected]) if you have not received your key or would like to enquire about receiving a key. | ||
|
||
Check out the example Shine app above for help getting started. | ||
|
||
|
@@ -15,42 +15,42 @@ Check out the example Shine app above for help getting started. | |
Shine SDK requires iOS 7.1+ | ||
|
||
###Cocoapods Installation### | ||
Shine can be installed using [Cocoapods](http://cocoapods.org). Simple add the following to your Podfile and run _pod install_. | ||
Shine can be installed using [Cocoapods](http://cocoapods.org). Simple add the following to your Podfile and run `pod install`. | ||
```bash | ||
|
||
pod 'Shine', '~>1.0' | ||
pod 'Shine', '~>1.1' | ||
``` | ||
|
||
###Manual Installation### | ||
|
||
Shine SDK needs to be installed manually. | ||
Shine SDK can also be installed manually. | ||
|
||
1. Download the latest shine from [Github](https://github.com/SoundwaveApp/Shine-iOS/tree/master/Shine.framework) | ||
1. Download the latest Shine framework from the root folder of this repository. | ||
2. Drag Shine.framework into your Xcode project, ticking the “Copy items if needed” checkbox. | ||
|
||
**Add Other Linker Flag** | ||
|
||
3. Select your Xcode project in the file navigator sidebar. | ||
4. Select your project, then it’s “Build Settings" Tab. | ||
4. In the main pane, select your project, and then go to the “Build Settings" Tab. | ||
5. Search for “Other Linker Flags”. | ||
6. Double click the “Other Linker Flags” row’s value area, on the right side. A pop-up should appear. | ||
7. Add “-ObjC” by pressing the + button if it is hasn’t already been added | ||
|
||
 | ||
|
||
|
||
#Initializing Shine# | ||
##Initializing Shine## | ||
|
||
|
||
To begin using shine follow these steps: | ||
To begin using Shine follow these steps: | ||
|
||
* Import Shine into your `AppDelegate` class | ||
```objective-c | ||
|
||
#import <Shine/Shine.h> | ||
``` | ||
|
||
* 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. | ||
* 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:[email protected]). | ||
|
||
```objective-c | ||
|
||
|
@@ -63,7 +63,7 @@ To begin using shine follow these steps: | |
Once you have added this code, Shine will start capturing data once your app launches. | ||
|
||
|
||
#User Registration# | ||
##User Registration## | ||
|
||
|
||
You can capture user registration data by adding the following code to your app: | ||
|
@@ -82,9 +82,12 @@ shineUser.email = @"[email protected]"; | |
... | ||
``` | ||
#Optional Integration Points# | ||
##Optional Integration Points## | ||
The following Shine integration points are not mandatory when using Shine. | ||
##Location Capture## | ||
###Location Capture### | ||
Shine can capture a device's location if the host app has the required location services permissions. | ||
To capture location data, you need to add the following code to a class that conforms to the CLLocationDelegate protocol. | ||
```objective-c | ||
|
@@ -97,7 +100,8 @@ Shine location tracking works for both _**kCLAuthorizationStatusAuthorizedAlways | |
|
||
An example of capturing location data is available in the example app. | ||
|
||
##Contacts Syncing## | ||
###Contacts Syncing### | ||
|
||
Shine can capture a device's contacts if the host app has the required contacts access permissions. | ||
```objective-c | ||
ABAddressBookRequestAccessWithCompletion(ABAddressBookCreateWithOptions(nil, nil), ^(bool granted, CFErrorRef error) { | ||
|
@@ -110,7 +114,7 @@ ABAddressBookRequestAccessWithCompletion(ABAddressBookCreateWithOptions(nil, nil | |
An example of syncing contacts data is available in the example app. | ||
#Troubleshooting# | ||
##Troubleshooting## | ||
**Q**. _I don't think Shine is capturing any data_ | ||
|
@@ -125,15 +129,16 @@ An example of syncing contacts data is available in the example app. | |
} | ||
``` | ||
|
||
-------- | ||
--- | ||
|
||
**Q**. _I get an error "Undefined symbols for architecture"_ | ||
|
||
 | ||
|
||
**A**. Make sure you have added `-ObjC` to your **Other Linker Flags** | ||
|
||
------- | ||
--- | ||
|
||
**Q**. _I get an error "*Shine Authorization Failed: Please Enter A Valid Developer Key*"_ | ||
|
||
**A**. Make sure you have a valid Developer Key and have entered it correctly. Please contact Soundwave to obtain a Developer Key. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+2.93 KB
Shine.framework/Versions/A/Resources/SWShineModel.momd/SWShineModel.mom
Binary file not shown.
Binary file added
BIN
+368 Bytes
Shine.framework/Versions/A/Resources/SWShineModel.momd/VersionInfo.plist
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.93 KB
Shine.framework/Versions/A/Resources/ShineBundle.bundle/SWShineModel.momd/SWShineModel.mom
Binary file not shown.
Binary file added
BIN
+368 Bytes
Shine.framework/Versions/A/Resources/ShineBundle.bundle/SWShineModel.momd/VersionInfo.plist
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Shine.framework/Versions/A/Resources/_CodeSignature/CodeDirectory
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
Shine.framework/Versions/A/Resources/_CodeSignature/CodeSignature
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,16 @@ | ||
# | ||
# Be sure to run `pod lib lint ${POD_NAME}.podspec' to ensure this is a | ||
# valid spec and remove all comments before submitting the spec. | ||
# | ||
# Any lines starting with a # are optional, but encouraged | ||
# | ||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html | ||
# | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "Shine" | ||
s.version = "1.0" | ||
s.summary = "The Shine iOS SDK, for integrating Shine into your iOS application." | ||
s.description = "The Shine iOS SDK, for integrating Shine into your iOS application. Supports iOS 7 and iOS 8." | ||
s.homepage = "https://github.com/SoundwaveApp/Shine-iOS" | ||
s.license = { :type => 'Apache 2.0', :text => <<-LICENSE | ||
Copyright 2015 Soundwave | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
LICENSE | ||
} | ||
s.author = { "${USER_NAME}" => "${USER_EMAIL}" } | ||
s.source = { :git => "https://github.com/SoundwaveApp/Shine-iOS.git", :tag => s.version.to_s } | ||
s.name = "Shine" | ||
s.version = "1.1" | ||
s.summary = "The Shine iOS SDK, for integrating Shine into your iOS application." | ||
s.homepage = "https://github.com/SoundwaveApp/Shine-iOS" | ||
s.license = { :type => 'Apache 2.0', :file => 'LICENSE.txt' } | ||
s.authors = { "Clodagh ML" => "[email protected]", "Liam Russell" => "[email protected]", "Brian Boyle" => "[email protected]" } | ||
s.source = { :git => "https://github.com/SoundwaveApp/Shine-iOS.git", :tag => s.version.to_s } | ||
s.frameworks = ["Foundation", "CoreGraphics", "MobileCoreServices", "Security", "CoreData"] | ||
s.requires_arc = true | ||
s.platform = :ios, '7.0' | ||
s.platform = :ios, '7.1' | ||
s.preserve_paths = 'Shine.framework' | ||
s.public_header_files = 'Shine.framework/Versions/A/Headers/Shine.h' | ||
s.resource = 'Shine.framework/Versions/A/Resources/ShineBundle.bundle' | ||
s.vendored_frameworks = 'Shine.framework' | ||
|
||
|
||
|
||
end |