-
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.
- Loading branch information
Showing
10 changed files
with
283 additions
and
39 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
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
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
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
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,19 +1,5 @@ | ||
Copyright (c) 2018 tetujin <[email protected]> | ||
Copyright (c) 2018 AWARE Mobile Context Instrumentation Middleware/Framework (http://www.awareframework.com) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
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 | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# com.awareframework.ios.sensor.magnetometer | ||
# com.aware.ios.sensor.magnetometer | ||
|
||
[![CI Status](https://img.shields.io/travis/tetujin/com.awareframework.ios.sensor.magnetometer.svg?style=flat)](https://travis-ci.org/tetujin/com.awareframework.ios.sensor.magnetometer) | ||
[![Version](https://img.shields.io/cocoapods/v/com.awareframework.ios.sensor.magnetometer.svg?style=flat)](https://cocoapods.org/pods/com.awareframework.ios.sensor.magnetometer) | ||
[![License](https://img.shields.io/cocoapods/l/com.awareframework.ios.sensor.magnetometer.svg?style=flat)](https://cocoapods.org/pods/com.awareframework.ios.sensor.magnetometer) | ||
[![Platform](https://img.shields.io/cocoapods/p/com.awareframework.ios.sensor.magnetometer.svg?style=flat)](https://cocoapods.org/pods/com.awareframework.ios.sensor.magnetometer) | ||
[![CI Status](https://img.shields.io/travis/tetujin/com.aware.ios.sensor.magnetometer.svg?style=flat)](https://travis-ci.org/tetujin/com.aware.ios.sensor.magnetometer) | ||
[![Version](https://img.shields.io/cocoapods/v/com.aware.ios.sensor.magnetometer.svg?style=flat)](https://cocoapods.org/pods/com.aware.ios.sensor.magnetometer) | ||
[![License](https://img.shields.io/cocoapods/l/com.aware.ios.sensor.magnetometer.svg?style=flat)](https://cocoapods.org/pods/com.aware.ios.sensor.magnetometer) | ||
[![Platform](https://img.shields.io/cocoapods/p/com.aware.ios.sensor.magnetometer.svg?style=flat)](https://cocoapods.org/pods/com.aware.ios.sensor.magnetometer) | ||
|
||
## Example | ||
|
||
|
@@ -13,17 +13,44 @@ To run the example project, clone the repo, and run `pod install` from the Examp | |
|
||
## Installation | ||
|
||
com.awareframework.ios.sensor.magnetometer is available through [CocoaPods](https://cocoapods.org). To install | ||
it, simply add the following line to your Podfile: | ||
com.aware.ios.sensor.magnetometer is available through [CocoaPods](https://cocoapods.org). | ||
|
||
1. To install it, simply add the following line to your Podfile: | ||
```ruby | ||
pod 'com.awareframework.ios.sensor.magnetometer' | ||
pod 'com.aware.ios.sensor.magnetometer' | ||
``` | ||
|
||
2. Import com.aware.ios.sensor.magnetometer library into your source code. | ||
```swift | ||
import com_aware_ios_sensor_magnetometer | ||
``` | ||
|
||
## Example usage | ||
```swift | ||
var magnetometer = MagnetometerSensor.init( MagnetometerSensor.Config().apply{ config in | ||
config.debug = true | ||
config.sensorObserver = Observer() | ||
}) | ||
magnetometer?.start() | ||
``` | ||
|
||
```swift | ||
class Observer:MagnetometerObserver { | ||
func onChanged(data:MagnetometerData){ | ||
// Your code here.. | ||
} | ||
} | ||
``` | ||
|
||
## Author | ||
|
||
tetujin, [email protected] | ||
Yuuki Nishiyama, [email protected] | ||
|
||
## License | ||
|
||
com.awareframework.ios.sensor.magnetometer is available under the MIT license. See the LICENSE file for more info. | ||
Copyright (c) 2018 AWARE Mobile Context Instrumentation Middleware/Framework (http://www.awareframework.com) | ||
|
||
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 |
---|---|---|
|
@@ -21,14 +21,16 @@ Pod::Spec.new do |s| | |
TODO: Add long description of the pod here. | ||
DESC | ||
|
||
s.homepage = 'https://github.com/tetujin/com.awareframework.ios.sensor.magnetometer' | ||
s.homepage = 'https://github.com/awareframework/com.awareframework.ios.sensor.magnetometer' | ||
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' | ||
s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
s.license = { :type => 'Apache2', :file => 'LICENSE' } | ||
s.author = { 'tetujin' => '[email protected]' } | ||
s.source = { :git => 'https://github.com/tetujin/com.awareframework.ios.sensor.magnetometer.git', :tag => s.version.to_s } | ||
s.source = { :git => 'https://github.com/awareframework/com.awareframework.ios.sensor.magnetometer.git', :tag => s.version.to_s } | ||
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>' | ||
|
||
s.ios.deployment_target = '8.0' | ||
s.ios.deployment_target = '10.0' | ||
|
||
s.swift_version = '4.0' | ||
|
||
s.source_files = 'com.awareframework.ios.sensor.magnetometer/Classes/**/*' | ||
|
||
|
@@ -37,6 +39,9 @@ TODO: Add long description of the pod here. | |
# } | ||
|
||
# s.public_header_files = 'Pod/Classes/**/*.h' | ||
# s.frameworks = 'UIKit', 'MapKit' | ||
s.frameworks = 'CoreMotion' #'UIKit', 'MapKit' | ||
# s.dependency 'AFNetworking', '~> 2.3' | ||
|
||
s.dependency 'com.awareframework.ios.sensor.core' | ||
|
||
end |
Oops, something went wrong.