-
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
1 parent
958d3a1
commit 9fd303c
Showing
15 changed files
with
219 additions
and
326 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 @@ | ||
4.0 |
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,53 @@ | ||
# | ||
# Be sure to run `pod lib lint AzureData.podspec' to ensure this is a | ||
# valid spec before submitting. | ||
# | ||
# Any lines starting with a # are optional, but their use is encouraged | ||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html | ||
# | ||
|
||
Pod::Spec.new do |s| | ||
s.name = 'AzureData' | ||
s.version = '0.5.6' | ||
s.summary = 'iOS client for Microsoft\'s Azure Cosmos DB DocumentDB written in Swift' | ||
|
||
# This description is used to generate tags and improve search results. | ||
# * Think: What does it do? Why did you write it? What is the focus? | ||
# * Try to keep it short, snappy and to the point. | ||
# * Write the description between the DESC delimiters below. | ||
# * Finally, don't worry about the indent, CocoaPods strips it! | ||
|
||
s.description = <<-DESC | ||
AzureData is an iOS, watchOS, macOS, tvOS client for Microsoft\'s Azure Cosmos DB DocumentDB written in Swift | ||
It originally created as part of **[Azure.Mobile](https://aka.ms/mobile)** — a framework for rapidly creating iOS and android apps with modern, highly-scalable backends on Azure — built with two simple objectives: | ||
1. Enable developers to create, configure, deploy all necessary backend services fast — ideally under 10 minutes with only a few clicks | ||
2. Provide native iOS and android SDKs with delightful APIs to interact with the services | ||
DESC | ||
|
||
s.homepage = 'https://aka.ms/azureios' | ||
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' | ||
s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
s.author = 'Colby Williams' | ||
# s.author = { 'Colby Williams' => 'colbylwilliams@gmail.com' } | ||
s.source = { :git => 'https://github.com/colbylwilliams/Azure.iOS.git', :tag => "v#{s.version}" } | ||
# s.social_media_url = 'https://twitter.com/colbylwilliams' | ||
# s.social_media_url = 'https://www.instagram.com/colbylwilliams' | ||
|
||
s.ios.deployment_target = '11.1' | ||
# s.osx.deployment_target = '10.13' | ||
# s.tvos.deployment_target = '11.1' | ||
# s.watchos.deployment_target = '4.0' | ||
|
||
s.source_files = 'AzureData/Source/*.swift', 'AzureData/Source/Resources/*.swift', 'AzureData/Source/*.h', 'AzureData/Source/*.m' | ||
|
||
# s.resource_bundles = { | ||
# 'AzureData' => ['AzureData/Assets/*.png'] | ||
# } | ||
|
||
# s.public_header_files = 'Pod/Classes/**/*.h' | ||
s.ios.frameworks = 'Foundation', 'CommonCrypto' | ||
# s.osx.frameworks = 'Foundation', 'CommonCrypto' | ||
# s.dependency 'AFNetworking', '~> 2.3' | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
82 changes: 0 additions & 82 deletions
82
AzureData/AzureData.xcodeproj/xcshareddata/xcschemes/CommonCryptoModuleMap.xcscheme
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
|
||
import Foundation | ||
|
||
|
||
extension DocumentClient { | ||
|
||
fileprivate static let timestamp = "_ts" | ||
|
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,15 @@ | ||
// | ||
// NSData+CCHmac.h | ||
// AzureData | ||
// | ||
// Created by Colby L Williams on 1/8/18. | ||
// Copyright © 2018 Colby Williams. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface NSData (CCHmac) | ||
|
||
- (NSData *)CCHmacWithBytes:(const unsigned char *) bytes; | ||
|
||
@end |
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,25 @@ | ||
// | ||
// NSString+CCHmac.m | ||
// AzureData | ||
// | ||
// Created by Colby L Williams on 1/8/18. | ||
// Copyright © 2018 Colby Williams. All rights reserved. | ||
// | ||
|
||
#import "NSData+CCHmac.h" | ||
#import <CommonCrypto/CommonHMAC.h> | ||
|
||
@implementation NSData (CCHmac) | ||
|
||
- (NSData *)CCHmacWithBytes:(const unsigned char *) bytes { | ||
|
||
unsigned char hashResult[CC_SHA256_DIGEST_LENGTH]; | ||
|
||
CCHmac(kCCHmacAlgSHA256, self.bytes, self.length, bytes, strlen((char*)bytes), hashResult); | ||
|
||
NSData *hash = [[NSData alloc] initWithBytes:hashResult length:sizeof(hashResult)]; | ||
|
||
return hash; | ||
} | ||
|
||
@end |
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
Oops, something went wrong.