From 9723f5492419f0f50f2a5760f750eafabe892769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ti=E1=BA=BFn=20Nguy=E1=BB=85n=20Kh=E1=BA=AFc?= Date: Thu, 4 Mar 2021 20:02:01 +1300 Subject: [PATCH] Chore/clean up (#1) * Clean up inconsistency * Remove whitespace * Update pods script * Cleanup new lines --- example/ios/Podfile.lock | 4 ++-- ios/modules/RAAirplayConnectivityContext.m | 2 +- ios/modules/RAAirplayConnectivityContext.swift | 2 +- ios/modules/RAExternalPlaybackAvailabilityContext.m | 2 +- ios/modules/RAExternalPlaybackAvailabilityContext.swift | 2 +- package.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 4c57f79..a9fcb51 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -38,7 +38,7 @@ PODS: - React-RCTSettings (= 0.63.4) - React-RCTText (= 0.63.4) - React-RCTVibration (= 0.63.4) - - react-airplay (0.1.1-beta.1): + - react-airplay (0.1.1-beta.3): - React - React-callinvoker (0.63.4) - React-Core (0.63.4): @@ -358,7 +358,7 @@ SPEC CHECKSUMS: RCTRequired: 082f10cd3f905d6c124597fd1c14f6f2655ff65e RCTTypeSafety: 8c9c544ecbf20337d069e4ae7fd9a377aadf504b React: b0a957a2c44da4113b0c4c9853d8387f8e64e615 - react-airplay: 68c6b4b6622a567f2d98e30dc758e73931f0ffb7 + react-airplay: 6232341765ca05675edf817f377cdc47e108f4ba React-callinvoker: c3f44dd3cb195b6aa46621fff95ded79d59043fe React-Core: d3b2a1ac9a2c13c3bcde712d9281fc1c8a5b315b React-CoreModules: 0581ff36cb797da0943d424f69e7098e43e9be60 diff --git a/ios/modules/RAAirplayConnectivityContext.m b/ios/modules/RAAirplayConnectivityContext.m index 39dc1fe..bc4ecb5 100644 --- a/ios/modules/RAAirplayConnectivityContext.m +++ b/ios/modules/RAAirplayConnectivityContext.m @@ -3,6 +3,6 @@ @interface RCT_EXTERN_MODULE(RAAirplayConnectivityContext, RCTEventEmitter) -RCT_EXTERN_METHOD(fetchAirplayConnectivity: (RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject) +RCT_EXTERN_METHOD(fetchAirplayConnectivity:(RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject) @end diff --git a/ios/modules/RAAirplayConnectivityContext.swift b/ios/modules/RAAirplayConnectivityContext.swift index f02593e..bd385c0 100644 --- a/ios/modules/RAAirplayConnectivityContext.swift +++ b/ios/modules/RAAirplayConnectivityContext.swift @@ -27,7 +27,7 @@ class RAAirplayConnectivityContext: RAEventEmitter { } @objc(fetchAirplayConnectivity:withRejecter:) - func fetchAirplayConnectivity(_ resolve: RCTPromiseResolveBlock, withRejecter reject: RCTPromiseRejectBlock) -> Void { + func fetchAirplayConnectivity(_ resolve: RCTPromiseResolveBlock, withRejecter reject: RCTPromiseRejectBlock) { resolve(self.getAirplayConnectivity()) } diff --git a/ios/modules/RAExternalPlaybackAvailabilityContext.m b/ios/modules/RAExternalPlaybackAvailabilityContext.m index 520f5f0..ce6d07d 100644 --- a/ios/modules/RAExternalPlaybackAvailabilityContext.m +++ b/ios/modules/RAExternalPlaybackAvailabilityContext.m @@ -3,6 +3,6 @@ @interface RCT_EXTERN_MODULE(RAExternalPlaybackAvailabilityContext, RCTEventEmitter) -RCT_EXTERN_METHOD(fetchExternalPlaybackAvailability: (RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject) +RCT_EXTERN_METHOD(fetchExternalPlaybackAvailability:(RCTPromiseResolveBlock)resolve withRejecter:(RCTPromiseRejectBlock)reject) @end diff --git a/ios/modules/RAExternalPlaybackAvailabilityContext.swift b/ios/modules/RAExternalPlaybackAvailabilityContext.swift index 2c9fec9..0c4bda4 100644 --- a/ios/modules/RAExternalPlaybackAvailabilityContext.swift +++ b/ios/modules/RAExternalPlaybackAvailabilityContext.swift @@ -32,7 +32,7 @@ class RAExternalPlaybackAvailabilityContext: RAEventEmitter { } @objc(fetchExternalPlaybackAvailability:withRejecter:) - func fetchExternalPlaybackAvailability(_ resolve: RCTPromiseResolveBlock, withRejecter rejecter: RCTPromiseRejectBlock) -> Void { + func fetchExternalPlaybackAvailability(_ resolve: RCTPromiseResolveBlock, withRejecter reject: RCTPromiseRejectBlock) { resolve(self.getExternalPlaybackAvailability()) } diff --git a/package.json b/package.json index e2d231a..24183f3 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "prepare": "bob build", "release": "release-it", "example": "yarn --cwd example", - "pods": "cd example && pod-install --quiet", + "pods": "cd ios && pod-install --quiet && cd ../example && pod-install --quiet", "bootstrap": "yarn example && yarn && yarn pods" }, "keywords": [