Skip to content

Commit 43362be

Browse files
authored
Merge pull request #12 from VishwaiOSDev/dev/vishwa/network-kit-with-localhost-configuration
feat: updated `NetworkKit` and added support for localhost configuration
2 parents b4ee8b0 + 851269e commit 43362be

3 files changed

Lines changed: 50 additions & 41 deletions

File tree

Loadify.xcodeproj/project.pbxproj

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/* Begin PBXBuildFile section */
1010
88083D652855D7C70027BA0D /* LoadifyKit in Frameworks */ = {isa = PBXBuildFile; productRef = 88083D642855D7C70027BA0D /* LoadifyKit */; };
1111
88083D742855D9D00027BA0D /* VideoInfoTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88083D732855D9D00027BA0D /* VideoInfoTest.swift */; };
12-
881D007029B8E11B00C7BDBE /* Haptific in Frameworks */ = {isa = PBXBuildFile; productRef = 881D006F29B8E11B00C7BDBE /* Haptific */; };
1312
88220A89285DC9CC008260DE /* URLViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88220A88285DC9CC008260DE /* URLViewModel.swift */; };
1413
882A8BA1282958D80094BA6E /* DownloadView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 882A8BA0282958D80094BA6E /* DownloadView.swift */; };
1514
882A8BAA282973620094BA6E /* VideoQuality.swift in Sources */ = {isa = PBXBuildFile; fileRef = 882A8BA9282973620094BA6E /* VideoQuality.swift */; };
@@ -19,7 +18,6 @@
1918
88379938283A1A0F00DDBA79 /* String+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88379937283A1A0F00DDBA79 /* String+Extension.swift */; };
2019
88498D4C29A285BE007303B0 /* Logger+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88498D4B29A285BE007303B0 /* Logger+Extension.swift */; };
2120
888BD49B2A784F3900A835C5 /* Detailable+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 888BD49A2A784F3900A835C5 /* Detailable+Extension.swift */; };
22-
888C864B29059F6300E86D85 /* NetworkKit in Frameworks */ = {isa = PBXBuildFile; productRef = 888C864A29059F6300E86D85 /* NetworkKit */; };
2321
889714F82932618200D8B1B7 /* DownloadStatus.swift in Sources */ = {isa = PBXBuildFile; fileRef = 889714F72932618200D8B1B7 /* DownloadStatus.swift */; };
2422
889D520629B9AEDB00F61B1E /* Haptific+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 889D520529B9AEDB00F61B1E /* Haptific+Extension.swift */; };
2523
88A729AE28264AD100B5FE61 /* LoadifyApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88A729AD28264AD100B5FE61 /* LoadifyApp.swift */; };
@@ -38,6 +36,8 @@
3836
88DB2C362856F2BB0065BBF9 /* Mockable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DB2C352856F2BB0065BBF9 /* Mockable.swift */; };
3937
88DB2C382856F7820065BBF9 /* VideoDetailsResponse.json in Resources */ = {isa = PBXBuildFile; fileRef = 88DB2C372856F7820065BBF9 /* VideoDetailsResponse.json */; };
4038
88DB2C3B2856FDA60065BBF9 /* ApiServiceTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88DB2C3A2856FDA60065BBF9 /* ApiServiceTest.swift */; };
39+
88EB388D2A835C5F0021A78C /* Haptific in Frameworks */ = {isa = PBXBuildFile; productRef = 88EB388C2A835C5F0021A78C /* Haptific */; };
40+
88EB388F2A835C7A0021A78C /* NetworkKit in Frameworks */ = {isa = PBXBuildFile; productRef = 88EB388E2A835C7A0021A78C /* NetworkKit */; };
4141
88EBFF2F284DC33A007EFF97 /* Protocols.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88EBFF2E284DC33A007EFF97 /* Protocols.swift */; };
4242
88F341842836549000493544 /* LoadifyConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88F341832836549000493544 /* LoadifyConstants.swift */; };
4343
88FDA6E02862C80D0028DCE9 /* Errors.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88FDA6DF2862C80D0028DCE9 /* Errors.swift */; };
@@ -83,6 +83,7 @@
8383
88DB2C372856F7820065BBF9 /* VideoDetailsResponse.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = VideoDetailsResponse.json; sourceTree = "<group>"; };
8484
88DB2C3A2856FDA60065BBF9 /* ApiServiceTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ApiServiceTest.swift; sourceTree = "<group>"; };
8585
88EBFF2E284DC33A007EFF97 /* Protocols.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Protocols.swift; sourceTree = "<group>"; };
86+
88EF20112A81A98F005E3D69 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
8687
88F341832836549000493544 /* LoadifyConstants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadifyConstants.swift; sourceTree = "<group>"; };
8788
88FDA6DF2862C80D0028DCE9 /* Errors.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Errors.swift; sourceTree = "<group>"; };
8889
/* End PBXFileReference section */
@@ -99,11 +100,11 @@
99100
isa = PBXFrameworksBuildPhase;
100101
buildActionMask = 2147483647;
101102
files = (
103+
88EB388F2A835C7A0021A78C /* NetworkKit in Frameworks */,
102104
88083D652855D7C70027BA0D /* LoadifyKit in Frameworks */,
103105
88D9D1E628C39EED00D6EB79 /* FontInter in Frameworks */,
104-
881D007029B8E11B00C7BDBE /* Haptific in Frameworks */,
105-
888C864B29059F6300E86D85 /* NetworkKit in Frameworks */,
106106
88B3FD6B299A95F400112490 /* LoggerKit in Frameworks */,
107+
88EB388D2A835C5F0021A78C /* Haptific in Frameworks */,
107108
88D9D1E828C39EED00D6EB79 /* FontKit in Frameworks */,
108109
);
109110
runOnlyForDeploymentPostprocessing = 0;
@@ -192,6 +193,7 @@
192193
88A729AC28264AD100B5FE61 /* Loadify */ = {
193194
isa = PBXGroup;
194195
children = (
196+
88EF20112A81A98F005E3D69 /* Info.plist */,
195197
88B1CFA62826BBA4007B19B4 /* App */,
196198
88A729BD2826506B00B5FE61 /* Model */,
197199
88A729BC2826506300B5FE61 /* View */,
@@ -338,9 +340,9 @@
338340
88083D642855D7C70027BA0D /* LoadifyKit */,
339341
88D9D1E528C39EED00D6EB79 /* FontInter */,
340342
88D9D1E728C39EED00D6EB79 /* FontKit */,
341-
888C864A29059F6300E86D85 /* NetworkKit */,
342343
88B3FD6A299A95F400112490 /* LoggerKit */,
343-
881D006F29B8E11B00C7BDBE /* Haptific */,
344+
88EB388C2A835C5F0021A78C /* Haptific */,
345+
88EB388E2A835C7A0021A78C /* NetworkKit */,
344346
);
345347
productName = Loadify;
346348
productReference = 88A729AA28264AD100B5FE61 /* Loadify.app */;
@@ -377,9 +379,9 @@
377379
packageReferences = (
378380
88083D632855D7C70027BA0D /* XCRemoteSwiftPackageReference "LoadifyKit" */,
379381
88D9D1E328C39EAB00D6EB79 /* XCRemoteSwiftPackageReference "FontKit" */,
380-
88807CC128CDF6FB00185386 /* XCRemoteSwiftPackageReference "NetworkKit" */,
381382
88B3FD69299A95F400112490 /* XCRemoteSwiftPackageReference "LoggerKit" */,
382-
881D006E29B8E11B00C7BDBE /* XCRemoteSwiftPackageReference "Haptific" */,
383+
88EB388A2A835C430021A78C /* XCRemoteSwiftPackageReference "NetworkKit" */,
384+
88EB388B2A835C5F0021A78C /* XCRemoteSwiftPackageReference "Haptific" */,
383385
);
384386
productRefGroup = 88A729AB28264AD100B5FE61 /* Products */;
385387
projectDirPath = "";
@@ -625,6 +627,7 @@
625627
DEVELOPMENT_TEAM = 5Q2G7C7C3U;
626628
ENABLE_PREVIEWS = YES;
627629
GENERATE_INFOPLIST_FILE = YES;
630+
INFOPLIST_FILE = Loadify/Info.plist;
628631
INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "We need your photos access to save the downloaded files";
629632
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
630633
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -657,6 +660,7 @@
657660
DEVELOPMENT_TEAM = 5Q2G7C7C3U;
658661
ENABLE_PREVIEWS = YES;
659662
GENERATE_INFOPLIST_FILE = YES;
663+
INFOPLIST_FILE = Loadify/Info.plist;
660664
INFOPLIST_KEY_NSPhotoLibraryUsageDescription = "We need your photos access to save the downloaded files";
661665
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
662666
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -719,22 +723,6 @@
719723
minimumVersion = 0.4.1;
720724
};
721725
};
722-
881D006E29B8E11B00C7BDBE /* XCRemoteSwiftPackageReference "Haptific" */ = {
723-
isa = XCRemoteSwiftPackageReference;
724-
repositoryURL = "git@github.com:VishwaiOSDev/Haptific.git";
725-
requirement = {
726-
branch = main;
727-
kind = branch;
728-
};
729-
};
730-
88807CC128CDF6FB00185386 /* XCRemoteSwiftPackageReference "NetworkKit" */ = {
731-
isa = XCRemoteSwiftPackageReference;
732-
repositoryURL = "git@github.com:VishwaiOSDev/NetworkKit.git";
733-
requirement = {
734-
kind = upToNextMajorVersion;
735-
minimumVersion = 0.1.1;
736-
};
737-
};
738726
88B3FD69299A95F400112490 /* XCRemoteSwiftPackageReference "LoggerKit" */ = {
739727
isa = XCRemoteSwiftPackageReference;
740728
repositoryURL = "https://github.com/VishwaiOSDev/LoggerKit";
@@ -751,6 +739,22 @@
751739
minimumVersion = 0.0.5;
752740
};
753741
};
742+
88EB388A2A835C430021A78C /* XCRemoteSwiftPackageReference "NetworkKit" */ = {
743+
isa = XCRemoteSwiftPackageReference;
744+
repositoryURL = "https://github.com/VishwaiOSDev/NetworkKit";
745+
requirement = {
746+
kind = upToNextMajorVersion;
747+
minimumVersion = 0.2.0;
748+
};
749+
};
750+
88EB388B2A835C5F0021A78C /* XCRemoteSwiftPackageReference "Haptific" */ = {
751+
isa = XCRemoteSwiftPackageReference;
752+
repositoryURL = "https://github.com/Vignesh-Thangamariappan/Haptific";
753+
requirement = {
754+
kind = upToNextMajorVersion;
755+
minimumVersion = 1.0.0;
756+
};
757+
};
754758
/* End XCRemoteSwiftPackageReference section */
755759

756760
/* Begin XCSwiftPackageProductDependency section */
@@ -759,16 +763,6 @@
759763
package = 88083D632855D7C70027BA0D /* XCRemoteSwiftPackageReference "LoadifyKit" */;
760764
productName = LoadifyKit;
761765
};
762-
881D006F29B8E11B00C7BDBE /* Haptific */ = {
763-
isa = XCSwiftPackageProductDependency;
764-
package = 881D006E29B8E11B00C7BDBE /* XCRemoteSwiftPackageReference "Haptific" */;
765-
productName = Haptific;
766-
};
767-
888C864A29059F6300E86D85 /* NetworkKit */ = {
768-
isa = XCSwiftPackageProductDependency;
769-
package = 88807CC128CDF6FB00185386 /* XCRemoteSwiftPackageReference "NetworkKit" */;
770-
productName = NetworkKit;
771-
};
772766
88B3FD6A299A95F400112490 /* LoggerKit */ = {
773767
isa = XCSwiftPackageProductDependency;
774768
package = 88B3FD69299A95F400112490 /* XCRemoteSwiftPackageReference "LoggerKit" */;
@@ -784,6 +778,16 @@
784778
package = 88D9D1E328C39EAB00D6EB79 /* XCRemoteSwiftPackageReference "FontKit" */;
785779
productName = FontKit;
786780
};
781+
88EB388C2A835C5F0021A78C /* Haptific */ = {
782+
isa = XCSwiftPackageProductDependency;
783+
package = 88EB388B2A835C5F0021A78C /* XCRemoteSwiftPackageReference "Haptific" */;
784+
productName = Haptific;
785+
};
786+
88EB388E2A835C7A0021A78C /* NetworkKit */ = {
787+
isa = XCSwiftPackageProductDependency;
788+
package = 88EB388A2A835C430021A78C /* XCRemoteSwiftPackageReference "NetworkKit" */;
789+
productName = NetworkKit;
790+
};
787791
/* End XCSwiftPackageProductDependency section */
788792
};
789793
rootObject = 88A729A228264AD100B5FE61 /* Project object */;

Loadify.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Loadify/App/Enums/API.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ enum API {
1414
}
1515

1616
extension API: NetworkRequestable {
17-
17+
1818
var host: String { "api.loadify.app" }
1919

2020
var path: String {
@@ -41,4 +41,9 @@ extension API: NetworkRequestable {
4141
return ["url": url, "video_quality": quality.rawValue]
4242
}
4343
}
44+
45+
/// Configuration for `localhost`
46+
var shouldRunLocal: Bool { true }
47+
48+
var port: Int? { 3200 }
4449
}

0 commit comments

Comments
 (0)