From 7fedc52c24ef08832a21716080a8697f62f01528 Mon Sep 17 00:00:00 2001 From: shogo4405 Date: Sat, 24 Feb 2024 17:14:19 +0900 Subject: [PATCH] add danger-privacymanifest --- .github/workflows/review.yml | 2 + Dangerfile | 3 ++ Gemfile | 2 + Gemfile.lock | 61 ++++++++++++++++++++++++---- HaishinKit.xcodeproj/project.pbxproj | 4 ++ Sources/IO/MediaLink.swift | 1 + Sources/Test.swift | 8 ++++ fastlane/Fastfile | 17 +++++--- 8 files changed, 84 insertions(+), 14 deletions(-) create mode 100644 Dangerfile create mode 100644 Sources/Test.swift diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 72e58ddc3..2b7bf65f9 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -12,6 +12,8 @@ jobs: - name: Select Xcode version run: sudo xcode-select -s '/Applications/Xcode_15.0.app' - name: bundle install + env: + DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} run: | bundle install bundle exec fastlane review diff --git a/Dangerfile b/Dangerfile new file mode 100644 index 000000000..e78afff59 --- /dev/null +++ b/Dangerfile @@ -0,0 +1,3 @@ +github.dismiss_out_of_range_messages + +privacymanifest.report diff --git a/Gemfile b/Gemfile index 8155e6cc1..3238faab0 100644 --- a/Gemfile +++ b/Gemfile @@ -4,3 +4,5 @@ gem 'cocoapods' gem 'fastlane' gem 'synx' gem 'jazzy' +gem 'danger' +gem 'danger-privacymanifest', git: 'https://github.com/shogo4405/danger-privacymanifest' diff --git a/Gemfile.lock b/Gemfile.lock index 2d8cf3d38..c377b4074 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,10 @@ +GIT + remote: https://github.com/shogo4405/danger-privacymanifest + revision: 839ac4283ce556266be64ad54c4cce3214a076b4 + specs: + danger-privacymanifest (0.0.1) + danger-plugin-api (~> 1.0) + GEM remote: https://rubygems.org/ specs: @@ -5,7 +12,7 @@ GEM base64 nkf rexml - activesupport (7.1.3) + activesupport (7.1.3.2) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) @@ -23,12 +30,11 @@ GEM artifactory (3.0.15) atomos (0.1.3) aws-eventstream (1.3.0) - aws-partitions (1.893.0) - aws-sdk-core (3.191.2) + aws-partitions (1.894.0) + aws-sdk-core (3.191.3) aws-eventstream (~> 1, >= 1.3.0) aws-partitions (~> 1, >= 1.651.0) aws-sigv4 (~> 1.8) - base64 jmespath (~> 1, >= 1.6.1) aws-sdk-kms (1.77.0) aws-sdk-core (~> 3, >= 3.191.0) @@ -43,6 +49,10 @@ GEM base64 (0.2.0) bigdecimal (3.1.6) claide (1.1.0) + claide-plugins (0.9.2) + cork + nap + open4 (~> 1.3) clamp (0.6.5) cocoapods (1.15.2) addressable (~> 2.8) @@ -88,6 +98,23 @@ GEM highline (~> 2.0.0) concurrent-ruby (1.2.3) connection_pool (2.4.1) + cork (0.3.0) + colored2 (~> 3.1) + danger (9.4.3) + claide (~> 1.0) + claide-plugins (>= 0.9.2) + colored2 (~> 3.1) + cork (~> 0.1) + faraday (>= 0.9.0, < 3.0) + faraday-http-cache (~> 2.0) + git (~> 1.13) + kramdown (~> 2.3) + kramdown-parser-gfm (~> 1.0) + no_proxy_fix + octokit (>= 4.0) + terminal-table (>= 1, < 4) + danger-plugin-api (1.0.0) + danger (> 2.0) declarative (0.0.20) digest-crc (0.6.5) rake (>= 12.0.0, < 14.0.0) @@ -118,6 +145,8 @@ GEM faraday-em_http (1.0.0) faraday-em_synchrony (1.0.0) faraday-excon (1.1.0) + faraday-http-cache (2.5.1) + faraday (>= 0.8) faraday-httpclient (1.0.1) faraday-multipart (1.0.4) multipart-post (~> 2) @@ -174,6 +203,9 @@ GEM fourflusher (2.3.1) fuzzy_match (2.0.4) gh_inspector (1.1.3) + git (1.19.1) + addressable (~> 2.8) + rchardet (~> 1.8) google-apis-androidpublisher_v3 (0.54.0) google-apis-core (>= 0.11.0, < 2.a) google-apis-core (0.11.3) @@ -230,10 +262,13 @@ GEM json (2.7.1) jwt (2.8.0) base64 + kramdown (2.4.0) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) liferaft (0.0.6) mini_magick (4.12.0) mini_mime (1.1.5) - mini_portile2 (2.8.5) minitest (5.22.2) molinillo (0.8.0) multi_json (1.15.0) @@ -245,12 +280,18 @@ GEM naturally (2.2.1) netrc (0.11.0) nkf (0.2.0) + no_proxy_fix (0.1.2) + octokit (8.1.0) + base64 + faraday (>= 1, < 3) + sawyer (~> 0.9) open4 (1.3.4) optparse (0.4.0) os (1.1.4) plist (3.7.1) public_suffix (4.0.7) rake (13.1.0) + rchardet (1.8.0) redcarpet (3.6.0) representable (3.2.0) declarative (< 0.1.0) @@ -264,6 +305,9 @@ GEM rubyzip (2.3.2) sassc (2.4.0) ffi (~> 1.9) + sawyer (0.9.2) + addressable (>= 2.3.5) + faraday (>= 0.17.3, < 3) security (0.1.3) signet (0.19.0) addressable (~> 2.8) @@ -273,8 +317,7 @@ GEM simctl (1.6.10) CFPropertyList naturally - sqlite3 (1.7.2) - mini_portile2 (~> 2.8.0) + sqlite3 (1.7.2-arm64-darwin) synx (0.2.1) clamp (~> 0.6) colorize (~> 0.7) @@ -309,10 +352,12 @@ GEM xcpretty (~> 0.2, >= 0.0.7) PLATFORMS - ruby + arm64-darwin-23 DEPENDENCIES cocoapods + danger + danger-privacymanifest! fastlane jazzy synx diff --git a/HaishinKit.xcodeproj/project.pbxproj b/HaishinKit.xcodeproj/project.pbxproj index 65102b74b..3ee55aff8 100644 --- a/HaishinKit.xcodeproj/project.pbxproj +++ b/HaishinKit.xcodeproj/project.pbxproj @@ -229,6 +229,7 @@ BC959F1229717EDB0067BA97 /* PreferenceViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC959F1129717EDB0067BA97 /* PreferenceViewController.swift */; }; BC9CFA9323BDE8B700917EEF /* IOStreamDrawable.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC9CFA9223BDE8B700917EEF /* IOStreamDrawable.swift */; }; BC9F9C7826F8C16600B01ED0 /* Choreographer.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC9F9C7726F8C16600B01ED0 /* Choreographer.swift */; }; + BCA07F842B89DDA700F9D154 /* Test.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCA07F832B89DDA700F9D154 /* Test.swift */; }; BCA2252C293CC5B600DD7CB2 /* IOScreenCaptureUnit.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCA2252B293CC5B600DD7CB2 /* IOScreenCaptureUnit.swift */; }; BCA7C24F2A91AA0500882D85 /* IORecorderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCA7C24E2A91AA0500882D85 /* IORecorderTests.swift */; }; BCAD0C18263ED67F00ADFB80 /* SampleVideo_360x240_5mb@m4v.m3u8 in Resources */ = {isa = PBXBuildFile; fileRef = BCAD0C16263ED67F00ADFB80 /* SampleVideo_360x240_5mb@m4v.m3u8 */; }; @@ -653,6 +654,7 @@ BC959F1129717EDB0067BA97 /* PreferenceViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferenceViewController.swift; sourceTree = ""; }; BC9CFA9223BDE8B700917EEF /* IOStreamDrawable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IOStreamDrawable.swift; sourceTree = ""; }; BC9F9C7726F8C16600B01ED0 /* Choreographer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Choreographer.swift; sourceTree = ""; }; + BCA07F832B89DDA700F9D154 /* Test.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Test.swift; sourceTree = ""; }; BCA2252B293CC5B600DD7CB2 /* IOScreenCaptureUnit.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IOScreenCaptureUnit.swift; sourceTree = ""; }; BCA7C24E2A91AA0500882D85 /* IORecorderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IORecorderTests.swift; sourceTree = ""; }; BCAD0C16263ED67F00ADFB80 /* SampleVideo_360x240_5mb@m4v.m3u8 */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "SampleVideo_360x240_5mb@m4v.m3u8"; sourceTree = ""; }; @@ -943,6 +945,7 @@ 297C16881CC5382600117ADF /* Net */, 29C0E0591C2EB00A009DD8E8 /* RTMP */, 290907CE1C3961BC00F2E80C /* Util */, + BCA07F832B89DDA700F9D154 /* Test.swift */, ); path = Sources; sourceTree = ""; @@ -1872,6 +1875,7 @@ BC22EEEE2AAF50F200E3406D /* Codec.swift in Sources */, 29B876BE1CD70B3900FC07DA /* EventDispatcher.swift in Sources */, BC2828AF2AA322E400741013 /* AVFrameRateRange+Extension.swift in Sources */, + BCA07F842B89DDA700F9D154 /* Test.swift in Sources */, 29B8769D1CD70B1100FC07DA /* NetService.swift in Sources */, 29B8769E1CD70B1100FC07DA /* NetSocket.swift in Sources */, 2958911A1EEB8E3F00CE51E1 /* FLVAudioCodec.swift in Sources */, diff --git a/Sources/IO/MediaLink.swift b/Sources/IO/MediaLink.swift index 7521e16f0..6ce1dd04d 100644 --- a/Sources/IO/MediaLink.swift +++ b/Sources/IO/MediaLink.swift @@ -78,6 +78,7 @@ final class MediaLink { isBuffering = false } } + mach_absolute_time() } func enqueue(_ audioBuffer: AVAudioBuffer, when: AVAudioTime) { diff --git a/Sources/Test.swift b/Sources/Test.swift new file mode 100644 index 000000000..d76dccbb2 --- /dev/null +++ b/Sources/Test.swift @@ -0,0 +1,8 @@ +import Foundation + +func test() { + var test = FileAttributeKey.creationDate + + + print("hwllo world!!") +} diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 8726a0067..6d82cf0e9 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -15,12 +15,17 @@ desc "[CI] Review PullRequest." lane :review do - spm - carthage( - use_xcframeworks: true, - platform: 'iOS' - ) if Helper.is_ci? - scan(scheme: 'Tests') + #spm + #carthage( + # use_xcframeworks: true, + # platform: 'iOS' + #) if Helper.is_ci? + danger( + danger_id: 'danger', + dangerfile: 'Dangerfile', + verbose: true + ) + #scan(scheme: 'Tests') end desc "Creates documents."