Skip to content

Commit

Permalink
project rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
rsantosbliss committed Jan 15, 2021
1 parent 254a7b7 commit c8cdc34
Show file tree
Hide file tree
Showing 59 changed files with 210 additions and 3,890 deletions.
192 changes: 96 additions & 96 deletions Documents/Graph.json
Original file line number Diff line number Diff line change
@@ -1,193 +1,193 @@
{
"settings" : {
"configs" : {
"Release" : {
"ENABLE_BITCODE" : true
}
},
"base" : {
"IPHONEOS_DEPLOYMENT_TARGET" : 10,
"SWIFT_VERSION" : 5.2999999999999998,
"ENABLE_BITCODE" : false
}
},
"targets" : {
"RJSLibUFALayouts" : {
"templates" : [
"Framework"
],
"MyLibraryTests" : {
"dependencies" : [
{
"link" : false,
"target" : "SampleApp"
},
{
"link" : false,
"target" : "RJSLibUFBase"
},
{
"target" : "RJSLibUFNetworking",
"link" : false
},
{
"target" : "RJSLibUFALayouts",
"link" : false
},
{
"link" : false,
"target" : "RJSLibUFStorage"
}
],
"type" : "bundle.unit-test",
"scheme" : {

},
"sources" : [
{
"path" : "..\/Sources\/RJSLibUFALayouts"
"path" : "..\/Tests\/RJSLibUFTests"
}
]
],
"platform" : "iOS"
},
"RJSLibUFStorage" : {
"RJSLibUFBase" : {
"templates" : [
"Framework"
],
"sources" : [
{
"path" : "..\/Sources\/RJSLibUFStorage"
"path" : "..\/Sources\/RJSLibUFBase"
}
],
]
},
"RJSLibUFNetworking" : {
"dependencies" : [
{
"link" : false,
"target" : "RJSLibUFBase"
}
],
"sources" : [
{
"path" : "..\/Sources\/RJSLibUFNetworking"
}
],
"templates" : [
"Framework"
]
},
"MyLibraryTests" : {
"RJSLibUFAppThemes" : {
"sources" : [
{
"path" : "..\/Tests\/MyLibraryTests"
"path" : "..\/Sources\/RJSLibUFAppThemes"
}
],
"platform" : "iOS",
"scheme" : {

},
"dependencies" : [
{
"target" : "SampleApp",
"link" : false
},
{
"link" : false,
"target" : "RJSLibUFBase"
},
{
"target" : "RJSLibUFNetworking",
"target" : "RJSLibUFBase",
"link" : false
},
{
"link" : false,
"target" : "RJSLibUFALayouts"
},
{
"link" : false,
"target" : "RJSLibUFStorage"
}
],
"type" : "bundle.unit-test"
},
"RJSLibUFAppThemes" : {
"templates" : [
"Framework"
],
]
},
"RJSLibUFStorage" : {
"sources" : [
{
"path" : "..\/Sources\/RJSLibUFAppThemes"
"path" : "..\/Sources\/RJSLibUFStorage"
}
],
"dependencies" : [
{
"link" : false,
"target" : "RJSLibUFBase"
}
],
"templates" : [
"Framework"
]
},
"SampleApp" : {
"sources" : [
"deploymentTarget" : 10,
"postCompileScripts" : [
{
"path" : "..\/SampleApp"
"name" : "Run SwiftLint",
"script" : "if which swiftlint >\/dev\/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https:\/\/github.com\/realm\/SwiftLint\"\nfi\n"
}
],
"type" : "application",
"settings" : {
"base" : {
"MARKETING_VERSION" : 1
}
},
"deploymentTarget" : 10,
"dependencies" : [
{
"target" : "RJSLibUFBase",
"link" : true
},
{
"link" : true,
"target" : "RJSLibUFAppThemes"
},
{
"target" : "RJSLibUFNetworking",
"target" : "RJSLibUFAppThemes",
"link" : true
},
{
"link" : true,
"target" : "RJSLibUFALayouts"
"target" : "RJSLibUFNetworking"
},
{
"target" : "RJSLibUFStorage",
"target" : "RJSLibUFALayouts",
"link" : true
}
],
"postCompileScripts" : [
},
{
"script" : "if which swiftlint >\/dev\/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https:\/\/github.com\/realm\/SwiftLint\"\nfi\n",
"name" : "Run SwiftLint"
"target" : "RJSLibUFStorage",
"link" : true
}
],
"platform" : "iOS"
},
"RJSLibUFBase" : {
"templates" : [
"Framework"
],
"platform" : "iOS",
"sources" : [
{
"path" : "..\/Sources\/RJSLibUFBase"
"path" : "..\/SampleApp"
}
]
],
"type" : "application"
},
"RJSLibUFNetworking" : {
"sources" : [
"RJSLibUFALayouts" : {
"dependencies" : [
{
"path" : "..\/Sources\/RJSLibUFNetworking"
"link" : false,
"target" : "RJSLibUFBase"
}
],
"dependencies" : [
"sources" : [
{
"target" : "RJSLibUFBase",
"link" : false
"path" : "..\/Sources\/RJSLibUFALayouts"
}
],
"templates" : [
"Framework"
]
}
},
"name" : "RJSLibUF",
"options" : {
"minimumXcodeGenVersion" : "2.18.0",
"generateEmptyDirectories" : true,
"xcodeVersion" : "12.0.1",
"groupSortPosition" : "top",
"findCarthageFrameworks" : false,
"bundleIdPrefix" : "com.rjps.libuf",
"deploymentTarget" : "11.0"
},
"settings" : {
"configs" : {
"Release" : {
"ENABLE_BITCODE" : true
}
},
"base" : {
"SWIFT_VERSION" : 5.2999999999999998,
"IPHONEOS_DEPLOYMENT_TARGET" : 10,
"ENABLE_BITCODE" : false
}
},
"configs" : {
"Release" : "release",
"Debug" : "debug"
},
"targetTemplates" : {
"Framework" : {
"deploymentTarget" : 10,
"settings" : {
"base" : {
"MARKETING_VERSION" : "1.2.1"
}
},
"deploymentTarget" : 10,
"type" : "framework",
"platform" : "iOS"
"platform" : "iOS",
"type" : "framework"
}
},
"configs" : {
"Release" : "release",
"Debug" : "debug"
},
"name" : "RJSLibUF",
"options" : {
"bundleIdPrefix" : "com.rjps.libuf",
"findCarthageFrameworks" : false,
"xcodeVersion" : "12.0.1",
"minimumXcodeGenVersion" : "2.18.0",
"generateEmptyDirectories" : true,
"deploymentTarget" : "11.0",
"groupSortPosition" : "top"
}
}
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ let package = Package(
.target(name: spmThemesTargetName, exclude: [plistFile]),
.target(name: spmNetworkingTargetName, dependencies: [spmBaseDependency], exclude: [plistFile]),
.target(name: spmStorageTargetName, dependencies: [spmBaseDependency], exclude: [plistFile], resources: [.process("RJPSLibDataModel.xcdatamodel")]),
.testTarget(name: "MyLibraryTests", dependencies: testTargetDependencies),
.testTarget(name: "RJSLibUFTests", dependencies: testTargetDependencies),
]
)
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,29 @@ __Model:__

```swift
struct Employee: Codable {
let identifier, employeeName, employeeSalary: String
// https://app.quicktype.io/
let identifier, employeeName, employeeSalary, employeeAge: String
let profileImage: String
enum CodingKeys: String, CodingKey {
case identifier = "id"
case employeeName = "employee_name"
case employeeSalary = "employee_salary"
case employeeAge = "employee_age"
case profileImage = "profile_image"
}
}
```

__API Target Request:__

```swift
struct EmployesAPIRequest: RJS_SimpleNetworkClientProtocol {
struct APIRequest: RJS_SimpleNetworkClientRequestProtocol {
var returnOnMainTread: Bool = false
var debugRequest: Bool = true
var urlRequest: URLRequest
var responseType: RJS_SimpleNetworkClientResponseType
var mockedData: String? = """
[{"id":"36253","employee_name":"Mike Cooper","employee_salary":"80"},{"id":"36255","employee_name":"Eldon","employee_salary":"9452"}]
[{"id":"36253","employee_name":"Mike Cooper","employee_salary":"80","employee_age":"23","profile_image":""},{"id":"36255","employee_name":"Eldon","employee_salary":"9452","employee_age":"66","profile_image":""}]
"""
init() throws {
if let url = URL(string: "http://dummy.restapiexample.com/api/v1/employees") {
Expand All @@ -121,19 +125,19 @@ __Request:__

```swift
do {
let apiRequest: RJS_SimpleNetworkClientProtocol = try EmployesAPIRequest()
let api: RJS_SimpleNetworkClientRequestProtocol = RJS_SimpleNetworkClient()
api.execute(request: apiRequest, completionHandler: { (result: Result<RJS_SimpleNetworkClientResponse<[Employee]>>) in
typealias EmployeeList = [Employee]
let apiRequest: RJS_SimpleNetworkClientRequestProtocol = try APIRequest()
let api: SimpleNetworkClient_Protocol = RJS_SimpleNetworkClient()
api.execute(request: apiRequest, completionHandler: { (result: Result<RJS_SimpleNetworkClientResponse<EmployeeList>>) in
switch result {
case .success(let some):
print(some.entity)
case .failure(let error):
print(error)
case .success(let some): print(some.entity)
case .failure(let error): print(error)
}
})
} catch {
print(error)
}
}
```

---
Expand Down
5 changes: 0 additions & 5 deletions RJSLibUF/.gitignore

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c8cdc34

Please sign in to comment.