Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
knottx committed Apr 6, 2021
1 parent c1f560d commit 43ed75e
Show file tree
Hide file tree
Showing 9 changed files with 84 additions and 18 deletions.
6 changes: 4 additions & 2 deletions JWTCodable.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "JWTCodable"
spec.version = "1.2.0"
spec.version = "1.3.0"
spec.summary = "JSON Web Tokens Codable framework for iOS in swift"

spec.homepage = "https://github.com/knottx/JWTCodable"
Expand All @@ -11,7 +11,9 @@ Pod::Spec.new do |spec|

spec.swift_version = "5.1"
spec.ios.deployment_target = "10.0"
spec.source_files = "JWTCodable/**/*.swift"
spec.source_files = "JWTCodable/JWTEncoder/JWTEncoder/**/*.swift",
"JWTCodable/JWTDecoder/JWTDecoder/**/*.swift",
"JWTCodable/Extensions/**/*.swift"
spec.requires_arc = true

end
48 changes: 36 additions & 12 deletions JWTCodable.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
objects = {

/* Begin PBXBuildFile section */
1A903712261C1C82003F266D /* JWTDecoder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A903711261C1C82003F266D /* JWTDecoder.swift */; };
1A90371B261C1CB9003F266D /* JWTDecoderModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A90371A261C1CB9003F266D /* JWTDecoderModels.swift */; };
1A90371F261C1D17003F266D /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 1A90371E261C1D17003F266D /* README.md */; };
1A903727261C1E67003F266D /* JWTDecoder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A903725261C1E67003F266D /* JWTDecoder.swift */; };
1A903728261C1E67003F266D /* JWTDecoderModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A903726261C1E67003F266D /* JWTDecoderModels.swift */; };
1A903731261C1E94003F266D /* JWTEncoder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A903730261C1E94003F266D /* JWTEncoder.swift */; };
1A903737261C1EB8003F266D /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 1A903736261C1EB8003F266D /* README.md */; };
8B8F9591261AB328001A159B /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B8F958E261AB328001A159B /* Extensions.swift */; };
8B99209C261AAF0100DC4224 /* JWTCodable.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B992092261AAF0100DC4224 /* JWTCodable.framework */; };
8B9920A1261AAF0100DC4224 /* JWTCodableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B9920A0261AAF0100DC4224 /* JWTCodableTests.swift */; };
Expand All @@ -26,9 +28,11 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
1A903711261C1C82003F266D /* JWTDecoder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = JWTDecoder.swift; path = ../JWTDecoder.swift; sourceTree = "<group>"; };
1A90371A261C1CB9003F266D /* JWTDecoderModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = JWTDecoderModels.swift; path = ../JWTDecoderModels.swift; sourceTree = "<group>"; };
1A90371E261C1D17003F266D /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
1A903725261C1E67003F266D /* JWTDecoder.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JWTDecoder.swift; sourceTree = "<group>"; };
1A903726261C1E67003F266D /* JWTDecoderModels.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JWTDecoderModels.swift; sourceTree = "<group>"; };
1A903730261C1E94003F266D /* JWTEncoder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JWTEncoder.swift; sourceTree = "<group>"; };
1A903736261C1EB8003F266D /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
8B8F958E261AB328001A159B /* Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = "<group>"; };
8B992092261AAF0100DC4224 /* JWTCodable.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = JWTCodable.framework; sourceTree = BUILT_PRODUCTS_DIR; };
8B992096261AAF0100DC4224 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -59,19 +63,36 @@
1A903717261C1C88003F266D /* JWTDecoder */ = {
isa = PBXGroup;
children = (
1A903722261C1D29003F266D /* New Group */,
1A90372D261C1E73003F266D /* JWTDecoder */,
1A90371E261C1D17003F266D /* README.md */,
);
path = JWTDecoder;
sourceTree = "<group>";
};
1A903722261C1D29003F266D /* New Group */ = {
1A90372D261C1E73003F266D /* JWTDecoder */ = {
isa = PBXGroup;
children = (
1A903711261C1C82003F266D /* JWTDecoder.swift */,
1A90371A261C1CB9003F266D /* JWTDecoderModels.swift */,
1A903725261C1E67003F266D /* JWTDecoder.swift */,
1A903726261C1E67003F266D /* JWTDecoderModels.swift */,
);
path = "New Group";
path = JWTDecoder;
sourceTree = "<group>";
};
1A903734261C1E98003F266D /* JWTEncoder */ = {
isa = PBXGroup;
children = (
1A903735261C1EA5003F266D /* JWTEncoder */,
1A903736261C1EB8003F266D /* README.md */,
);
path = JWTEncoder;
sourceTree = "<group>";
};
1A903735261C1EA5003F266D /* JWTEncoder */ = {
isa = PBXGroup;
children = (
1A903730261C1E94003F266D /* JWTEncoder.swift */,
);
path = JWTEncoder;
sourceTree = "<group>";
};
8B8F959B261AB4D6001A159B /* Extensions */ = {
Expand Down Expand Up @@ -103,9 +124,10 @@
8B992094261AAF0100DC4224 /* JWTCodable */ = {
isa = PBXGroup;
children = (
1A903717261C1C88003F266D /* JWTDecoder */,
8B8F959B261AB4D6001A159B /* Extensions */,
8B992096261AAF0100DC4224 /* Info.plist */,
1A903717261C1C88003F266D /* JWTDecoder */,
1A903734261C1E98003F266D /* JWTEncoder */,
);
path = JWTCodable;
sourceTree = "<group>";
Expand Down Expand Up @@ -211,6 +233,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1A903737261C1EB8003F266D /* README.md in Resources */,
1A90371F261C1D17003F266D /* README.md in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -229,8 +252,9 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1A903712261C1C82003F266D /* JWTDecoder.swift in Sources */,
1A90371B261C1CB9003F266D /* JWTDecoderModels.swift in Sources */,
1A903731261C1E94003F266D /* JWTEncoder.swift in Sources */,
1A903728261C1E67003F266D /* JWTDecoderModels.swift in Sources */,
1A903727261C1E67003F266D /* JWTDecoder.swift in Sources */,
8B8F9591261AB328001A159B /* Extensions.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion JWTCodable/JWTDecoder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 📲 Installation

`JWTDecoder` is available on [CocoaPods](https://cocoapods.org/pods/JWTDecoder):
`JWTDecoder` is available on [CocoaPods](https://cocoapods.org/pods/JWTCodable):

```ruby
pod 'JWTDecoder'
Expand Down
15 changes: 15 additions & 0 deletions JWTCodable/JWTEncoder/JWTEncoder/JWTEncoder.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// JWTEncoder.swift
// JWTCodable
//
// Created by Visarut Tippun on 6/4/21.
// Copyright © 2021 knottx. All rights reserved.
//

import Foundation

public class JWTEncoder {

public static let shared:JWTEncoder = JWTEncoder()

}
23 changes: 23 additions & 0 deletions JWTCodable/JWTEncoder/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**JWTEncoder** is a JSON Web Tokens Encoder framework for iOS in swift.

## 📲 Installation

`JWTEncoder` is available on [CocoaPods](https://cocoapods.org/pods/JWTCodable):

```ruby
pod 'JWTEncoder'
```

## 📝 How
### Code Implementation
```swift
import JWTEncoder
```



## 📋 Requirements

* iOS 10.0+
* Xcode 11+
* Swift 5.1+
3 changes: 2 additions & 1 deletion JWTDecoder.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Pod::Spec.new do |spec|

spec.swift_version = "5.1"
spec.ios.deployment_target = "10.0"
spec.source_files = "JWTCodable/JWTDecoder/**/*.swift", "JWTCodable/Extensions/**/*.swift"
spec.source_files = "JWTCodable/JWTDecoder/JWTDecoder/**/*.swift",
"JWTCodable/Extensions/**/*.swift"
spec.requires_arc = true

end
5 changes: 3 additions & 2 deletions JWTEncoder.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "JWTEncoder"
spec.version = "1.2.0"
spec.version = "1.3.0"
spec.summary = "JSON Web Tokens Encoder framework for iOS in swift"

spec.homepage = "https://github.com/knottx/JWTCodable"
Expand All @@ -11,7 +11,8 @@ Pod::Spec.new do |spec|

spec.swift_version = "5.1"
spec.ios.deployment_target = "10.0"
spec.source_files = "JWTCodable/JWTEncoder/**/*.swift", "JWTCodable/Extensions/**/*.swift"
spec.source_files = "JWTCodable/JWTEncoder/JWTEncoder/**/*.swift",
"JWTCodable/Extensions/**/*.swift"
spec.requires_arc = true

end

0 comments on commit 43ed75e

Please sign in to comment.