1 Star 0 Fork 0

Kaelinda/SwiftTempApp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
blame.diff 60.19 KB
一键复制 编辑 原始数据 按行查看 历史
Kael 提交于 2022-10-24 13:09 . add:scop-description
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
diff --git a/git_json.sh b/git_json.sh
--- a/git_json.sh
+++ b/git_json.sh
2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 12) # git log --pretty=oneline >filename.log
2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 13) # git log --pretty=format:"%h%x09%an%x09%ad%x09%s"
2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 14)
 - 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 15) -# git log \
 - 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 16) -# --pretty=format:'{%n "commit": "%H",%n "author": "%an <%ae>",%n "date": "%ad",%n "message": "%f"%n},' \
 - 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 17) -# $@ | \
 - 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 18) -# perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \
 - 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 19) -# perl -pe 's/},]/}]/' >> test.json
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 15) +git log \
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 16) +--pretty=format:'{%n "commit": "%H",%n "author": "%an <%ae>",%n "date": "%ad",%n "message": "%f"%n},' \
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 17) +$@ | \
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 18) +perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 19) +perl -pe 's/},]/}]/' >> commitList.json
 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 20)
 - 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 21) -# git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline > new-in-this-release.log
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 21) +#git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline > new-in-this-release.log
 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 22)
 - 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 23) -target_Path="http://app1.nowcoder.com:8000/Users/nowcoder_mobile/Downloads/"
 - 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 24) -
 - 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 25) -
 - 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 26) -curl -F upload=$target_Path
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 23) +# target_Path="http://app1.nowcoder.com:8000/Users/nowcoder_mobile/Downloads/"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 24) +# curl -F upload=$target_Path
diff --git a/templateApp/Pods/Pods.xcodeproj/project.pbxproj b/templateApp/Pods/Pods.xcodeproj/project.pbxproj
--- a/templateApp/Pods/Pods.xcodeproj/project.pbxproj
+++ b/templateApp/Pods/Pods.xcodeproj/project.pbxproj
a26d549c (Kael 2022-03-19 23:55:24 +0800 1938) BFDFE7DC352907FC980B868725387E98 /* Project object */ = {
3aad7b15 (作颂 2018-11-01 18:56:08 +0800 1939) isa = PBXProject;
3aad7b15 (作颂 2018-11-01 18:56:08 +0800 1940) attributes = {
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 1941) - LastSwiftUpdateCheck = 1240;
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 1942) - LastUpgradeCheck = 1240;
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 1941) + LastSwiftUpdateCheck = 1300;
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 1942) + LastUpgradeCheck = 1300;
 3aad7b15 (作颂 2018-11-01 18:56:08 +0800 1943) };
a26d549c (Kael 2022-03-19 23:55:24 +0800 1944) buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */;
a26d549c (Kael 2022-03-19 23:55:24 +0800 1945) compatibilityVersion = "Xcode 10.0";
diff --git a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Alamofire.xcscheme b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Alamofire.xcscheme
--- a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Alamofire.xcscheme
+++ b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Alamofire.xcscheme
a26d549c (Kael 2022-03-19 23:55:24 +0800 1) <?xml version="1.0" encoding="UTF-8"?>
a26d549c (Kael 2022-03-19 23:55:24 +0800 2) <Scheme
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 3) - LastUpgradeVersion = "1240"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) + LastUpgradeVersion = "1300"
 a26d549c (Kael 2022-03-19 23:55:24 +0800 4) version = "1.3">
a26d549c (Kael 2022-03-19 23:55:24 +0800 5) <BuildAction
a26d549c (Kael 2022-03-19 23:55:24 +0800 6) parallelizeBuildables = "YES"
diff --git a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Coverage.xcscheme b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Coverage.xcscheme
--- a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Coverage.xcscheme
+++ b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Coverage.xcscheme
994a10be (Kael 2022-09-06 23:45:31 +0800 1) <?xml version="1.0" encoding="UTF-8"?>
994a10be (Kael 2022-09-06 23:45:31 +0800 2) <Scheme
 - 994a10be (Kael 2022-09-06 23:45:31 +0800 3) - LastUpgradeVersion = "1240"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) + LastUpgradeVersion = "1300"
 994a10be (Kael 2022-09-06 23:45:31 +0800 4) version = "1.3">
994a10be (Kael 2022-09-06 23:45:31 +0800 5) <BuildAction
994a10be (Kael 2022-09-06 23:45:31 +0800 6) parallelizeBuildables = "YES"
diff --git a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/HDCoverage.xcscheme b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/HDCoverage.xcscheme
--- a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/HDCoverage.xcscheme
+++ b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/HDCoverage.xcscheme
a26d549c (Kael 2022-03-19 23:55:24 +0800 1) <?xml version="1.0" encoding="UTF-8"?>
a26d549c (Kael 2022-03-19 23:55:24 +0800 2) <Scheme
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 3) - LastUpgradeVersion = "1240"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) + LastUpgradeVersion = "1300"
 a26d549c (Kael 2022-03-19 23:55:24 +0800 4) version = "1.3">
a26d549c (Kael 2022-03-19 23:55:24 +0800 5) <BuildAction
a26d549c (Kael 2022-03-19 23:55:24 +0800 6) parallelizeBuildables = "YES"
diff --git a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateApp.xcscheme b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateApp.xcscheme
--- a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateApp.xcscheme
+++ b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateApp.xcscheme
a26d549c (Kael 2022-03-19 23:55:24 +0800 1) <?xml version="1.0" encoding="UTF-8"?>
a26d549c (Kael 2022-03-19 23:55:24 +0800 2) <Scheme
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 3) - LastUpgradeVersion = "1240"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) + LastUpgradeVersion = "1300"
 a26d549c (Kael 2022-03-19 23:55:24 +0800 4) version = "1.3">
a26d549c (Kael 2022-03-19 23:55:24 +0800 5) <BuildAction
a26d549c (Kael 2022-03-19 23:55:24 +0800 6) parallelizeBuildables = "YES"
diff --git a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateAppTests.xcscheme b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateAppTests.xcscheme
--- a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateAppTests.xcscheme
+++ b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateAppTests.xcscheme
a26d549c (Kael 2022-03-19 23:55:24 +0800 1) <?xml version="1.0" encoding="UTF-8"?>
a26d549c (Kael 2022-03-19 23:55:24 +0800 2) <Scheme
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 3) - LastUpgradeVersion = "1240"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) + LastUpgradeVersion = "1300"
 a26d549c (Kael 2022-03-19 23:55:24 +0800 4) version = "1.3">
a26d549c (Kael 2022-03-19 23:55:24 +0800 5) <BuildAction
a26d549c (Kael 2022-03-19 23:55:24 +0800 6) parallelizeBuildables = "YES"
diff --git a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateAppUITests.xcscheme b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateAppUITests.xcscheme
--- a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateAppUITests.xcscheme
+++ b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Pods-templateAppUITests.xcscheme
a26d549c (Kael 2022-03-19 23:55:24 +0800 1) <?xml version="1.0" encoding="UTF-8"?>
a26d549c (Kael 2022-03-19 23:55:24 +0800 2) <Scheme
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 3) - LastUpgradeVersion = "1240"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) + LastUpgradeVersion = "1300"
 a26d549c (Kael 2022-03-19 23:55:24 +0800 4) version = "1.3">
a26d549c (Kael 2022-03-19 23:55:24 +0800 5) <BuildAction
a26d549c (Kael 2022-03-19 23:55:24 +0800 6) parallelizeBuildables = "YES"
diff --git a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/RxSwift.xcscheme b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/RxSwift.xcscheme
--- a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/RxSwift.xcscheme
+++ b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/RxSwift.xcscheme
a26d549c (Kael 2022-03-19 23:55:24 +0800 1) <?xml version="1.0" encoding="UTF-8"?>
a26d549c (Kael 2022-03-19 23:55:24 +0800 2) <Scheme
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 3) - LastUpgradeVersion = "1240"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) + LastUpgradeVersion = "1300"
 a26d549c (Kael 2022-03-19 23:55:24 +0800 4) version = "1.3">
a26d549c (Kael 2022-03-19 23:55:24 +0800 5) <BuildAction
a26d549c (Kael 2022-03-19 23:55:24 +0800 6) parallelizeBuildables = "YES"
diff --git a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/SnapKit.xcscheme b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/SnapKit.xcscheme
--- a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/SnapKit.xcscheme
+++ b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/SnapKit.xcscheme
a26d549c (Kael 2022-03-19 23:55:24 +0800 1) <?xml version="1.0" encoding="UTF-8"?>
a26d549c (Kael 2022-03-19 23:55:24 +0800 2) <Scheme
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 3) - LastUpgradeVersion = "1240"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) + LastUpgradeVersion = "1300"
 a26d549c (Kael 2022-03-19 23:55:24 +0800 4) version = "1.3">
a26d549c (Kael 2022-03-19 23:55:24 +0800 5) <BuildAction
a26d549c (Kael 2022-03-19 23:55:24 +0800 6) parallelizeBuildables = "YES"
diff --git a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Sourcery.xcscheme b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Sourcery.xcscheme
--- a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Sourcery.xcscheme
+++ b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/Sourcery.xcscheme
5960fe12 (Kael 2022-06-21 18:04:32 +0800 1) <?xml version="1.0" encoding="UTF-8"?>
5960fe12 (Kael 2022-06-21 18:04:32 +0800 2) <Scheme
 - 5960fe12 (Kael 2022-06-21 18:04:32 +0800 3) - LastUpgradeVersion = "1240"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) + LastUpgradeVersion = "1300"
 5960fe12 (Kael 2022-06-21 18:04:32 +0800 4) version = "1.3">
5960fe12 (Kael 2022-06-21 18:04:32 +0800 5) <BuildAction
5960fe12 (Kael 2022-06-21 18:04:32 +0800 6) parallelizeBuildables = "YES"
diff --git a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/SwiftyJSON.xcscheme b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/SwiftyJSON.xcscheme
--- a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/SwiftyJSON.xcscheme
+++ b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/SwiftyJSON.xcscheme
a26d549c (Kael 2022-03-19 23:55:24 +0800 1) <?xml version="1.0" encoding="UTF-8"?>
a26d549c (Kael 2022-03-19 23:55:24 +0800 2) <Scheme
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 3) - LastUpgradeVersion = "1240"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) + LastUpgradeVersion = "1300"
 a26d549c (Kael 2022-03-19 23:55:24 +0800 4) version = "1.3">
a26d549c (Kael 2022-03-19 23:55:24 +0800 5) <BuildAction
a26d549c (Kael 2022-03-19 23:55:24 +0800 6) parallelizeBuildables = "YES"
diff --git a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/lottie-ios.xcscheme b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/lottie-ios.xcscheme
--- a/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/lottie-ios.xcscheme
+++ b/templateApp/Pods/Pods.xcodeproj/xcuserdata/nowcoder.xcuserdatad/xcschemes/lottie-ios.xcscheme
a26d549c (Kael 2022-03-19 23:55:24 +0800 1) <?xml version="1.0" encoding="UTF-8"?>
a26d549c (Kael 2022-03-19 23:55:24 +0800 2) <Scheme
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 3) - LastUpgradeVersion = "1240"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) + LastUpgradeVersion = "1300"
 a26d549c (Kael 2022-03-19 23:55:24 +0800 4) version = "1.3">
a26d549c (Kael 2022-03-19 23:55:24 +0800 5) <BuildAction
a26d549c (Kael 2022-03-19 23:55:24 +0800 6) parallelizeBuildables = "YES"
diff --git a/templateApp/templateApp.xcodeproj/project.pbxproj b/templateApp/templateApp.xcodeproj/project.pbxproj
--- a/templateApp/templateApp.xcodeproj/project.pbxproj
+++ b/templateApp/templateApp.xcodeproj/project.pbxproj
be847396 (Kael 2022-04-21 00:13:09 +0800 57) FAB1A348280FEA6B0065019F /* BaseListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAB1A347280FEA6B0065019F /* BaseListViewController.swift */; };
be847396 (Kael 2022-04-21 00:13:09 +0800 58) FAB1A34C28105F010065019F /* ListConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAB1A34B28105F010065019F /* ListConfig.swift */; };
be847396 (Kael 2022-04-21 00:13:09 +0800 59) FAB1A34E2810671B0065019F /* TestListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAB1A34D2810671B0065019F /* TestListVC.swift */; };
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 60) + FAB73E9E28F1E1E300E96BE9 /* LARightStoreVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAB73E9D28F1E1E300E96BE9 /* LARightStoreVC.swift */; };
 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 60) FABBA9792861E1AF00535C00 /* NCMiniWindowPlayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = FABBA9782861E1AF00535C00 /* NCMiniWindowPlayer.swift */; };
2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 61) FABBA97B2861E63B00535C00 /* NCMiniPlayerFloatingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FABBA97A2861E63B00535C00 /* NCMiniPlayerFloatingView.swift */; };
2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 62) FABBA98128636F3F00535C00 /* NCMiniPlayerFloatingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FABBA98028636F3F00535C00 /* NCMiniPlayerFloatingViewController.swift */; };
be847396 (Kael 2022-04-21 00:13:09 +0800 155) FAB1A347280FEA6B0065019F /* BaseListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseListViewController.swift; sourceTree = "<group>"; };
be847396 (Kael 2022-04-21 00:13:09 +0800 156) FAB1A34B28105F010065019F /* ListConfig.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListConfig.swift; sourceTree = "<group>"; };
be847396 (Kael 2022-04-21 00:13:09 +0800 157) FAB1A34D2810671B0065019F /* TestListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestListVC.swift; sourceTree = "<group>"; };
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 159) + FAB73E9D28F1E1E300E96BE9 /* LARightStoreVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LARightStoreVC.swift; sourceTree = "<group>"; };
 2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 158) FABBA9782861E1AF00535C00 /* NCMiniWindowPlayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NCMiniWindowPlayer.swift; sourceTree = "<group>"; };
2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 159) FABBA97A2861E63B00535C00 /* NCMiniPlayerFloatingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NCMiniPlayerFloatingView.swift; sourceTree = "<group>"; };
2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 160) FABBA98028636F3F00535C00 /* NCMiniPlayerFloatingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NCMiniPlayerFloatingViewController.swift; sourceTree = "<group>"; };
febf9a0c (Kael 2022-09-27 16:53:13 +0800 416) FA764EF528E09F010060284A /* EditMenuInteractionViewController.swift */,
febf9a0c (Kael 2022-09-27 16:53:13 +0800 417) FA764EF728E0A6680060284A /* UIFindInteractionVC.swift */,
febf9a0c (Kael 2022-09-27 16:53:13 +0800 418) FA764EF928E0A9770060284A /* FontViewController.swift */,
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 421) + FAB73E9D28F1E1E300E96BE9 /* LARightStoreVC.swift */,
 febf9a0c (Kael 2022-09-27 16:53:13 +0800 419) );
febf9a0c (Kael 2022-09-27 16:53:13 +0800 420) path = iOS16;
febf9a0c (Kael 2022-09-27 16:53:13 +0800 421) sourceTree = "<group>";
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 527) buildConfigurationList = 7F05BFF6217979A2002BC7FB /* Build configuration list for PBXNativeTarget "templateApp" */;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 528) buildPhases = (
3aad7b15 (作颂 2018-11-01 18:56:08 +0800 529) FE4D8A1FCF412EFB242AAF63 /* [CP] Check Pods Manifest.lock */,
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 533) + FA334C3028E430DA00F5CDEA /* Branch Check */,
 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 530) 7F05BFCA217979A0002BC7FB /* Sources */,
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 531) 7F05BFCB217979A0002BC7FB /* Frameworks */,
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 532) 7F05BFCC217979A0002BC7FB /* Resources */,
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 588) isa = PBXProject;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 589) attributes = {
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 590) LastSwiftUpdateCheck = 1000;
 - 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 591) - LastUpgradeCheck = 1000;
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 595) + LastUpgradeCheck = 1320;
 5960fe12 (Kael 2022-06-21 18:04:32 +0800 592) ORGANIZATIONNAME = NowCoder;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 593) TargetAttributes = {
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 594) 7F05BFCD217979A0002BC7FB = {
3aad7b15 (作颂 2018-11-01 18:56:08 +0800 707) shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
3aad7b15 (作颂 2018-11-01 18:56:08 +0800 708) showEnvVarsInLog = 0;
3aad7b15 (作颂 2018-11-01 18:56:08 +0800 709) };
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 714) + FA334C3028E430DA00F5CDEA /* Branch Check */ = {
 + 3aad7b15 (作颂 2018-11-01 18:56:08 +0800 715) + isa = PBXShellScriptBuildPhase;
 + 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 716) + buildActionMask = 2147483647;
 + 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 717) + files = (
 + 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 718) + );
 + a26d549c (Kael 2022-03-19 23:55:24 +0800 719) + inputFileListPaths = (
 + a26d549c (Kael 2022-03-19 23:55:24 +0800 720) + );
 + a26d549c (Kael 2022-03-19 23:55:24 +0800 721) + inputPaths = (
 + a26d549c (Kael 2022-03-19 23:55:24 +0800 722) + );
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 723) + name = "Branch Check";
 + a26d549c (Kael 2022-03-19 23:55:24 +0800 724) + outputFileListPaths = (
 + a26d549c (Kael 2022-03-19 23:55:24 +0800 725) + );
 + a26d549c (Kael 2022-03-19 23:55:24 +0800 726) + outputPaths = (
 + 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 727) + );
 + 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 728) + runOnlyForDeploymentPostprocessing = 0;
 + 3aad7b15 (作颂 2018-11-01 18:56:08 +0800 729) + shellPath = /bin/sh;
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 730) + shellScript = "# Type a script or drag a script file from your workspace to insert its path.\n\n";
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 731) + };
 a26d549c (Kael 2022-03-19 23:55:24 +0800 710) FAA8FFDB27E4B74A00DFF465 /* ShellScript */ = {
3aad7b15 (作颂 2018-11-01 18:56:08 +0800 711) isa = PBXShellScriptBuildPhase;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 712) buildActionMask = 2147483647;
2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 803) FA9565F628675AC40078A172 /* VCJumpModule.swift in Sources */,
a26d549c (Kael 2022-03-19 23:55:24 +0800 804) FAA8002627E4E70900DFF465 /* module.modulemap in Sources */,
5960fe12 (Kael 2022-06-21 18:04:32 +0800 805) FA272B452843C6E9008A22D4 /* GuideVC.swift in Sources */,
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 828) + FAB73E9E28F1E1E300E96BE9 /* LARightStoreVC.swift in Sources */,
 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 806) 7F05BFD2217979A0002BC7FB /* AppDelegate.swift in Sources */,
2d68c3d7 (Kael 2022-08-15 15:47:05 +0800 807) FAC10949287DE593006020D0 /* TouchCell.swift in Sources */,
a56b7e1c (作颂 2018-10-30 18:59:25 +0800 808) 7FC2D1F621882E5A006AD4B5 /* Gossip.swift in Sources */,
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 900) CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 901) CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 902) CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 926) + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 903) CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 904) CLANG_WARN_STRICT_PROTOTYPES = YES;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 905) CLANG_WARN_SUSPICIOUS_MOVE = YES;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 961) CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 962) CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 963) CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 988) + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 964) CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 965) CLANG_WARN_STRICT_PROTOTYPES = YES;
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 966) CLANG_WARN_SUSPICIOUS_MOVE = YES;
a26d549c (Kael 2022-03-19 23:55:24 +0800 1003) "CODECOVERAGE=1",
a26d549c (Kael 2022-03-19 23:55:24 +0800 1004) );
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1005) INFOPLIST_FILE = templateApp/Info.plist;
 - 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1006) - IPHONEOS_DEPLOYMENT_TARGET = 10.0;
 + 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1031) + IPHONEOS_DEPLOYMENT_TARGET = 12.0;
 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1007) LD_RUNPATH_SEARCH_PATHS = (
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1008) "$(inherited)",
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1009) "@executable_path/Frameworks",
a26d549c (Kael 2022-03-19 23:55:24 +0800 1042) "CODECOVERAGE=1",
a26d549c (Kael 2022-03-19 23:55:24 +0800 1043) );
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1044) INFOPLIST_FILE = templateApp/Info.plist;
 - 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1045) - IPHONEOS_DEPLOYMENT_TARGET = 10.0;
 + 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1070) + IPHONEOS_DEPLOYMENT_TARGET = 12.0;
 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1046) LD_RUNPATH_SEARCH_PATHS = (
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1047) "$(inherited)",
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 1048) "@executable_path/Frameworks",
diff --git a/templateApp/templateApp.xcworkspace/xcuserdata/nowcoder.xcuserdatad/UserInterfaceState.xcuserstate b/templateApp/templateApp.xcworkspace/xcuserdata/nowcoder.xcuserdatad/UserInterfaceState.xcuserstate
diff --git a/templateApp/templateApp.xcworkspace/xcuserdata/nowcoder.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/templateApp/templateApp.xcworkspace/xcuserdata/nowcoder.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
--- a/templateApp/templateApp.xcworkspace/xcuserdata/nowcoder.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+++ b/templateApp/templateApp.xcworkspace/xcuserdata/nowcoder.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
a26d549c (Kael 2022-03-19 23:55:24 +0800 23) <BreakpointProxy
a26d549c (Kael 2022-03-19 23:55:24 +0800 24) BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
a26d549c (Kael 2022-03-19 23:55:24 +0800 25) <BreakpointContent
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 26) - uuid = "4106E7C3-A42D-4234-9672-B20B9FF432D7"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 26) + uuid = "D4E5A231-CCA1-4B53-8326-85ED18229DA1"
 a26d549c (Kael 2022-03-19 23:55:24 +0800 27) shouldBeEnabled = "Yes"
a26d549c (Kael 2022-03-19 23:55:24 +0800 28) ignoreCount = "0"
a26d549c (Kael 2022-03-19 23:55:24 +0800 29) continueAfterRunningActions = "No"
febf9a0c (Kael 2022-09-27 16:53:13 +0800 30) filePath = "templateApp/mouldles/iOS16/SystemNewFunctionModule.swift"
a26d549c (Kael 2022-03-19 23:55:24 +0800 31) startingColumnNumber = "9223372036854775807"
a26d549c (Kael 2022-03-19 23:55:24 +0800 32) endingColumnNumber = "9223372036854775807"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 33) - startingLineNumber = "145"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 34) - endingLineNumber = "145"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 35) - landmarkName = "testUISheetPresentationController()"
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 36) - landmarkType = "7">
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 37) - </BreakpointContent>
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 38) - </BreakpointProxy>
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 39) - <BreakpointProxy
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 40) - BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 41) - <BreakpointContent
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 42) - uuid = "42FFD1BA-56FF-4696-95E2-88BA5F652A16"
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 43) - shouldBeEnabled = "Yes"
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 44) - ignoreCount = "0"
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 45) - continueAfterRunningActions = "No"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 46) - filePath = "templateApp/mouldles/iOS16/SystemNewFunctionModule.swift"
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 47) - startingColumnNumber = "9223372036854775807"
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 48) - endingColumnNumber = "9223372036854775807"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 49) - startingLineNumber = "138"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 50) - endingLineNumber = "138"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 51) - landmarkName = "testUISheetPresentationController()"
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 52) - landmarkType = "7">
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 53) - </BreakpointContent>
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 54) - </BreakpointProxy>
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 55) - <BreakpointProxy
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 56) - BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 57) - <BreakpointContent
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 58) - uuid = "CC71EF5C-F5B6-43DE-944A-448314FC8051"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 59) - shouldBeEnabled = "No"
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 60) - ignoreCount = "0"
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 61) - continueAfterRunningActions = "No"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 62) - filePath = "templateApp/mouldles/iOS16/SystemNewFunctionModule.swift"
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 63) - startingColumnNumber = "9223372036854775807"
 - a26d549c (Kael 2022-03-19 23:55:24 +0800 64) - endingColumnNumber = "9223372036854775807"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 65) - startingLineNumber = "214"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 66) - endingLineNumber = "214"
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 67) - landmarkName = "testDeviceInfo()"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 33) + startingLineNumber = "57"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 34) + endingLineNumber = "57"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 35) + landmarkName = "configPageData()"
 a26d549c (Kael 2022-03-19 23:55:24 +0800 68) landmarkType = "7">
a26d549c (Kael 2022-03-19 23:55:24 +0800 69) </BreakpointContent>
a26d549c (Kael 2022-03-19 23:55:24 +0800 70) </BreakpointProxy>
diff --git a/templateApp/templateApp/Info.plist b/templateApp/templateApp/Info.plist
--- a/templateApp/templateApp/Info.plist
+++ b/templateApp/templateApp/Info.plist
6f7f06a8 (Kael 2022-03-24 23:50:24 +0800 52) <key>NSAllowsArbitraryLoads</key>
6f7f06a8 (Kael 2022-03-24 23:50:24 +0800 53) <true/>
6f7f06a8 (Kael 2022-03-24 23:50:24 +0800 54) </dict>
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 55) + <key>NSFaceIDUsageDescription</key>
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 56) + <string>获取FaceID描述</string>
 7acf35d3 (作颂 2018-10-19 18:21:07 +0800 55) <key>UILaunchStoryboardName</key>
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 56) <string>LaunchScreen</string>
7acf35d3 (作颂 2018-10-19 18:21:07 +0800 57) <key>UIMainStoryboardFile</key>
diff --git a/templateApp/templateApp/mouldles/iOS16/DeviceViewController.swift b/templateApp/templateApp/mouldles/iOS16/DeviceViewController.swift
--- a/templateApp/templateApp/mouldles/iOS16/DeviceViewController.swift
+++ b/templateApp/templateApp/mouldles/iOS16/DeviceViewController.swift
febf9a0c (Kael 2022-09-27 16:53:13 +0800 13) override func configPageData() {
febf9a0c (Kael 2022-09-27 16:53:13 +0800 14) title = "UIDevice 新特性"
febf9a0c (Kael 2022-09-27 16:53:13 +0800 15)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 16) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 17) +
 febf9a0c (Kael 2022-09-27 16:53:13 +0800 16) }
febf9a0c (Kael 2022-09-27 16:53:13 +0800 17) }
diff --git a/templateApp/templateApp/mouldles/iOS16/LARightStoreVC.swift b/templateApp/templateApp/mouldles/iOS16/LARightStoreVC.swift
--- /dev/null
+++ b/templateApp/templateApp/mouldles/iOS16/LARightStoreVC.swift
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 1) +//
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 2) +// LARightStoreVC.swift
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 3) +// templateApp
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 4) +//
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 5) +// Created by nowcoder on 2022/10/9.
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 6) +// Copyright © 2022 NowCoder. All rights reserved.
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 7) +//
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 8) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 9) +import Foundation
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 10) +import UIKit
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 11) +import LocalAuthentication
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 12) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 13) +class LARightStoreVC: BaseListViewController {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 14) + override func viewDidLoad() {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 15) + super.viewDidLoad()
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 16) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 17) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 18) + override func viewDidAppear(_ animated: Bool) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 19) + super.viewDidAppear(animated)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 20) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 21) + // 存储
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 22) + if #available(iOS 16.0, *) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 23) + Task {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 24) + let carID = "6270123456789000"
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 25) + let data = carID.data(using: .utf8)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 26) + if let data {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 27) + try await storeData(data)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 28) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 29) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 30) + } else {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 31) + // Fallback on earlier versions
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 32) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 33) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 34) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 35) + override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 36) + // 获取
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 37) + if #available(iOS 16.0, *) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 38) + Task {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 39) + let data = try await fetchData()
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 40) + print(String(decoding: data, as: UTF8.self))
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 41) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 42) + } else {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 43) + // Fallback on earlier versions
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 44) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 45) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 46) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 47) + override func viewWillDisappear(_ animated: Bool) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 48) + super.viewWillDisappear(animated)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 49) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 50) + // 解除授权
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 51) + if #available(iOS 16.0, *) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 52) + Task {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 53) + let loginRight = try await LARightStore.shared.right(forIdentifier: "bank-card")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 54) + await loginRight.deauthorize()
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 55) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 56) + } else {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 57) + // Fallback on earlier versions
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 58) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 59) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 60) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 61) + // MARK: 存储数据
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 62) + @available(iOS 16.0, *)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 63) + func storeData(_ data: Data) async throws {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 64) + // 1. 创建LARight
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 65) + let loginRight = LARight()
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 66) + // 2. 请求授权,弹出验证信息,通过TouchID、FaceID或密码验证
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 67) + try await loginRight.authorize(localizedReason: "用户需要向keychain中存储敏感数据")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 68) + // 3. 存储数据
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 69) + _ = try await LARightStore.shared.saveRight(loginRight, identifier: "bank-card", secret: data)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 70) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 71) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 72) + // MARK: 读取数据
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 73) + @available(iOS 16.0, *)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 74) + func fetchData() async throws -> Data {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 75) + // 1. 获取LARight
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 76) + let loginRight = try await LARightStore.shared.right(forIdentifier: "bank-card")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 77) + // 2. 请求授权
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 78) + try await loginRight.authorize(localizedReason: "用户需要从keychain中获取敏感数据")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 79) + // 3. 获取数据
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 80) + let data = try await loginRight.secret.rawData
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 81) + return data
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 82) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 83) +}
diff --git a/templateApp/templateApp/mouldles/iOS16/SystemNewFunctionModule.swift b/templateApp/templateApp/mouldles/iOS16/SystemNewFunctionModule.swift
--- a/templateApp/templateApp/mouldles/iOS16/SystemNewFunctionModule.swift
+++ b/templateApp/templateApp/mouldles/iOS16/SystemNewFunctionModule.swift
febf9a0c (Kael 2022-09-27 16:53:13 +0800 64) }
febf9a0c (Kael 2022-09-27 16:53:13 +0800 65) }),
febf9a0c (Kael 2022-09-27 16:53:13 +0800 66) KLFuncItem(funcName: "UIDevice info", callBack: { [weak self] in
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 67) - if #available(iOS 16.0, *) {
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 68) - self?.testDeviceInfo()
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 69) - } else {
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 70) - // Fallback on earlier versions
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 71) - }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 67) + self?.testDeviceInfo()
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 68) + }),
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 69) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 70) + KLFuncItem(funcName: "UIDevice screen direction", callBack: { [weak self] in
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 71) + self?.testScreenDevice()
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 72) + }),
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 73) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 74) + KLFuncItem(funcName: "Observe screen direction", callBack: { [weak self] in
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 75) + self?.observeScreenDirection()
 febf9a0c (Kael 2022-09-27 16:53:13 +0800 72) }),
febf9a0c (Kael 2022-09-27 16:53:13 +0800 73)
febf9a0c (Kael 2022-09-27 16:53:13 +0800 74) KLFuncItem(funcName: "SwiftUI cell", callBack: { [weak self] in
febf9a0c (Kael 2022-09-27 16:53:13 +0800 80) }),
febf9a0c (Kael 2022-09-27 16:53:13 +0800 81) ])
febf9a0c (Kael 2022-09-27 16:53:13 +0800 82) let group2 = KLFuncGroup(groupName: "iOS16 其他功能", funcItemList: [
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 83) - KLFuncItem(funcName: "UICalendarView", callBack: {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 87) + KLFuncItem(funcName: "系统页面 Scheme 跳转", callBack: { [weak self] in
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 88) + self?.testOpenAppSystemSchema()
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 89) + }),
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 90) + KLFuncItem(funcName: "URLSession multipathServiceType", callBack: {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 91) + self.testURLSession()
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 92) + }),
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 93) + KLFuncItem(funcName: "沙盒路径", callBack: {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 94) + self.testDeviceSandboxPath()
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 95) + }),
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 96) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 97) + KLFuncItem(funcName: "Keychain - LARightStore", callBack: { [weak self] in
 febf9a0c (Kael 2022-09-27 16:53:13 +0800 84) if #available(iOS 16.0, *) {
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 85) - let urlString = UIApplication.openNotificationSettingsURLString
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 86) - if let url = URL(string: urlString), UIApplication.shared.canOpenURL(url) {
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 87) - UIApplication.shared.open(url, options: [:], completionHandler: nil)
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 88) - }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 99) + self?.navigationController?.pushViewController(LARightStoreVC(), animated: true)
 febf9a0c (Kael 2022-09-27 16:53:13 +0800 89) } else {
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 90) - // 新的通知设置URL Scheme
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 91) - var urlString = ""
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 92) - if #available(iOS 15.4, *) {
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 93) - urlString = UIApplicationOpenNotificationSettingsURLString
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 94) - } else {
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 95) - urlString = UIApplication.openSettingsURLString
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 96) - }
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 97) - if let url = URL(string: urlString), UIApplication.shared.canOpenURL(url) {
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 98) - UIApplication.shared.open(url, options: [:], completionHandler: nil)
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 99) - }
 + febf9a0c (Kael 2022-09-27 16:53:13 +0800 101) + // Fallback on earlier versions
 febf9a0c (Kael 2022-09-27 16:53:13 +0800 100) }
febf9a0c (Kael 2022-09-27 16:53:13 +0800 101) }),
febf9a0c (Kael 2022-09-27 16:53:13 +0800 102) ])
febf9a0c (Kael 2022-09-27 16:53:13 +0800 137)
febf9a0c (Kael 2022-09-27 16:53:13 +0800 138) if #available(iOS 16.0, *) {
febf9a0c (Kael 2022-09-27 16:53:13 +0800 139) let vc = SystemNewFunctionModule()
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 140) - var popover = vc.popoverPresentationController
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 142) + let popover = vc.popoverPresentationController
 febf9a0c (Kael 2022-09-27 16:53:13 +0800 141) guard let sheet = popover?.adaptiveSheetPresentationController else {
febf9a0c (Kael 2022-09-27 16:53:13 +0800 142) return
febf9a0c (Kael 2022-09-27 16:53:13 +0800 143) }
febf9a0c (Kael 2022-09-27 16:53:13 +0800 208)
febf9a0c (Kael 2022-09-27 16:53:13 +0800 209) }
febf9a0c (Kael 2022-09-27 16:53:13 +0800 210)
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 211) - @available(iOS 16.0, *)
 febf9a0c (Kael 2022-09-27 16:53:13 +0800 212) func testDeviceInfo() {
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 213) - let device = UIDevice.current
 - febf9a0c (Kael 2022-09-27 16:53:13 +0800 214) - device.model
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 214) + print("------------")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 215) + let name = UIDevice.current.name
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 216) + print(name)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 217) + print("------------")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 218) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 219) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 220) + func testScreenDevice() {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 221) + if #available(iOS 16.0, *) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 222) + let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 223) + windowScene?.requestGeometryUpdate(.iOS(interfaceOrientations: .landscapeLeft))
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 224) + } else {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 225) + UIDevice.current.setValue(UIInterfaceOrientation.landscapeLeft.rawValue, forKey: "orientation")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 226) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 227) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 228) + DispatchQueue.main.asyncAfter(deadline: .now() + 5 ) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 229) + if #available(iOS 16.0, *) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 230) + let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 231) + windowScene?.requestGeometryUpdate(.iOS(interfaceOrientations: .portrait))
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 232) + } else {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 233) + UIDevice.current.setValue(UIInterfaceOrientation.portrait.rawValue, forKey: "orientation")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 234) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 235) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 236) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 237) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 238) + func observeScreenDirection () {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 239) + UIDevice.current.beginGeneratingDeviceOrientationNotifications()
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 240) + NotificationCenter.default.addObserver(self, selector: #selector(orientChange(noti:)), name: UIDevice.orientationDidChangeNotification, object: nil)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 241) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 242) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 243) + @objc
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 244) + func orientChange(noti:Notification) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 245) + let orient = UIDevice.current.orientation
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 246) + switch orient {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 247) + case .unknown:
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 248) + print("未知")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 249) + case .portrait:
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 250) + print("竖屏")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 251) + case .portraitUpsideDown:
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 252) + print("倒立竖屏")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 253) + case .landscapeLeft:
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 254) + print("Home按键在左侧")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 255) + case .landscapeRight:
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 256) + print("home 按键在右侧")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 257) + case .faceUp:
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 258) + print("正面朝上")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 259) + case .faceDown:
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 260) + print("正面朝下")
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 261) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 262) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 263) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 264) +}
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 265) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 266) +// MARK: - Other
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 267) +extension SystemNewFunctionModule {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 268) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 269) + func testOpenAppSystemSchema() {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 270) + if #available(iOS 16.0, *) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 271) + let urlString = UIApplication.openNotificationSettingsURLString
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 272) + if let url = URL(string: urlString), UIApplication.shared.canOpenURL(url) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 273) + UIApplication.shared.open(url, options: [:], completionHandler: nil)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 274) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 275) + } else {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 276) + // 新的通知设置URL Scheme
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 277) + var urlString = ""
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 278) + if #available(iOS 15.4, *) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 279) + urlString = UIApplicationOpenNotificationSettingsURLString
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 280) + } else {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 281) + urlString = UIApplication.openSettingsURLString
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 282) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 283) + if let url = URL(string: urlString), UIApplication.shared.canOpenURL(url) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 284) + UIApplication.shared.open(url, options: [:], completionHandler: nil)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 285) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 286) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 287) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 288) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 289) + func testURLSession() {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 290) + let configuration = URLSessionConfiguration.default
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 291) + // MultipathServiceType是一个枚举类型,App可以采用不同的策略来利用这些网络通道
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 292) + configuration.multipathServiceType = .handover
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 293) + let session = URLSession(configuration: configuration)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 294) + }
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 295) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 296) + func testDeviceSandboxPath() {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 297) + if #available(iOS 16.0, *) {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 298) + // Home目录
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 299) + let homeDirectory = URL.homeDirectory
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 300) + print(homeDirectory)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 301) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 302) + // Documents目录
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 303) + let documentsURL = URL.documentsDirectory
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 304) + print(documentsURL)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 305) +
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 306) + // Library目录
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 307) + var libraryDirectory = URL.libraryDirectory
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 308) + // append():直接在libraryDirectory进行拼接
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 309) + // directoryHint:是否应该执行文件系统检查,以确定路径是否指向文件夹
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 310) + libraryDirectory.append(path: "abc", directoryHint: .inferFromPath)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 311) + print(libraryDirectory)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 312) + // appending():拼接后产生新的URL,不影响原来的libraryDirectory
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 313) + let newURL = libraryDirectory.appending(path: "123", directoryHint: .inferFromPath)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 314) + print(newURL)
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 315) + } else {
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 316) + // Fallback on earlier versions
 + 00000000 (Not Committed Yet 2022-10-23 00:44:34 +0800 317) + }
 febf9a0c (Kael 2022-09-27 16:53:13 +0800 215) }
febf9a0c (Kael 2022-09-27 16:53:13 +0800 216)
febf9a0c (Kael 2022-09-27 16:53:13 +0800 217) }
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kaelinda/SwiftTempApp.git
git@gitee.com:kaelinda/SwiftTempApp.git
kaelinda
SwiftTempApp
SwiftTempApp
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385