Skip to content

Commit

Permalink
update podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
dshalaby committed Jun 8, 2021
1 parent 0d1c23f commit 71fc3e1
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 74 deletions.
10 changes: 5 additions & 5 deletions Example/SwiftTLV.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = "<group>"; };
68A7FB1D9447003120715D2D /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
6BDF486512BAF3391BF1F87E /* SwiftTLV.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SwiftTLV.podspec; path = ../SwiftTLV.podspec; sourceTree = "<group>"; };
6BDF486512BAF3391BF1F87E /* SwiftTLV.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SwiftTLV.podspec; path = ../SwiftTLV.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
7643A539F05AC52734B1ABA9 /* Pods-SwiftTLV_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftTLV_Tests.release.xcconfig"; path = "Target Support Files/Pods-SwiftTLV_Tests/Pods-SwiftTLV_Tests.release.xcconfig"; sourceTree = "<group>"; };
7C190B675A70060421494B20 /* Pods-SwiftTLV_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftTLV_Example.debug.xcconfig"; path = "Target Support Files/Pods-SwiftTLV_Example/Pods-SwiftTLV_Example.debug.xcconfig"; sourceTree = "<group>"; };
7F6ED08E2487C9F9021283E6 /* Pods_SwiftTLV_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftTLV_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -515,7 +515,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -531,7 +531,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down Expand Up @@ -568,7 +568,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SwiftTLV_Example.app/SwiftTLV_Example";
};
name = Debug;
Expand Down Expand Up @@ -602,7 +602,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SwiftTLV_Example.app/SwiftTLV_Example";
};
name = Release;
Expand Down
2 changes: 1 addition & 1 deletion Example/SwiftTLV/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
Expand Down
34 changes: 15 additions & 19 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
Copyright (c) 2021 dshalaby <[email protected]>

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:

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.
/*
* Copyright (c) 2021. Papyrus Electronics, Inc d/b/a TapTrack.
*
* 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.
*/
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ To run the example project, clone the repo, and run `pod install` from the Examp

## Requirements

Swift 5
iOS 12 or later

## Installation

SwiftTLV is available through [CocoaPods](https://cocoapods.org). To install
Expand All @@ -26,4 +29,4 @@ dshalaby, [email protected]

## License

SwiftTLV is available under the MIT license. See the LICENSE file for more info.
SwiftTLV is available under the Apache license. See the LICENSE file for more info.
26 changes: 9 additions & 17 deletions SwiftTLV.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

Pod::Spec.new do |s|
s.name = 'SwiftTLV'
s.version = '0.1.0'
s.summary = 'A short description of SwiftTLV.'
s.version = '1.0.0'
s.summary = 'Swift library for working with Tag-Length-Value (TLV) encoded data'

# 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?
Expand All @@ -18,25 +18,17 @@ Pod::Spec.new do |s|
# * Finally, don't worry about the indent, CocoaPods strips it!

s.description = <<-DESC
TODO: Add long description of the pod here.
Tag-Length-Value (TLV) encoded data is a useful format for encoding multi-field data into byte (UInt8) arrays. This library provides tools for working with TLV data both in byte array and struct forms (including methods to convert between forms). This library supports both single byte and dual byte tags as well as single byte and dual byte tags.
DESC

s.homepage = 'https://github.com/dshalaby/SwiftTLV'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.homepage = 'https://github.com/TapTrack/SwiftTLV'
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.author = { 'dshalaby' => '[email protected]' }
s.source = { :git => 'https://github.com/dshalaby/SwiftTLV.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.source = { :git => 'https://github.com/TapTrack/SwiftTLV.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/TapTrack'

s.ios.deployment_target = '9.0'
s.ios.deployment_target = '12.0'
s.swift_versions = "5.0"

s.source_files = 'SwiftTLV/Classes/**/*'

# s.resource_bundles = {
# 'SwiftTLV' => ['SwiftTLV/Assets/*.png']
# }

# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
end
31 changes: 0 additions & 31 deletions SwiftTLV/Classes/TLV.swift
Original file line number Diff line number Diff line change
Expand Up @@ -236,34 +236,3 @@ public enum TLVError: Error{
case TlvNotFound
case UnknownOrOther
}

//@objc public class ByteUtils : NSObject {
//
// public static func byteArray<T>(from value: T) -> [UInt8] where T: FixedWidthInteger {
// withUnsafeBytes(of: value.bigEndian, Array.init)
// }
//
// public static func bytesToUInt(bytes: [UInt8]) throws -> UInt32{
//
// let data = Data(bytes: bytes)
// var value8 : UInt8
// var value16 : UInt16
// var value32 : UInt32
// if (bytes.count == 1){
// value8 = UInt8(bigEndian: data.withUnsafeBytes({$0.pointee}))
// return UInt32(value8)
// }else if (bytes.count == 2){
// value16 = UInt16(bigEndian: data.withUnsafeBytes({$0.pointee}))
// return UInt32(value16)
// }else if (bytes.count == 4){
// value32 = UInt32(bigEndian: data.withUnsafeBytes({$0.pointee}))
// return value32
// }else{
// throw TLVError.UnsupportedIntegerSize
// }
// }
//}




0 comments on commit 71fc3e1

Please sign in to comment.