From 540748884a7d61ce456b619a7c0490ba1b1a614b Mon Sep 17 00:00:00 2001 From: Ross Savage Date: Thu, 29 Feb 2024 14:09:50 +0100 Subject: [PATCH 1/2] Rerun RN codegen for ktlint 1.2.0 --- .../main/java/com/breezsdk/BreezSDKMapper.kt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/libs/sdk-react-native/android/src/main/java/com/breezsdk/BreezSDKMapper.kt b/libs/sdk-react-native/android/src/main/java/com/breezsdk/BreezSDKMapper.kt index ff7c236a4..f05017e67 100644 --- a/libs/sdk-react-native/android/src/main/java/com/breezsdk/BreezSDKMapper.kt +++ b/libs/sdk-react-native/android/src/main/java/com/breezsdk/BreezSDKMapper.kt @@ -3597,6 +3597,7 @@ fun readableMapOf(aesSuccessActionDataResult: AesSuccessActionDataResult): Reada pushToMap(map, "type", "decrypted") pushToMap(map, "data", readableMapOf(aesSuccessActionDataResult.data)) } + is AesSuccessActionDataResult.ErrorStatus -> { pushToMap(map, "type", "errorStatus") pushToMap(map, "reason", aesSuccessActionDataResult.reason) @@ -3653,27 +3654,34 @@ fun readableMapOf(breezEvent: BreezEvent): ReadableMap? { pushToMap(map, "type", "newBlock") pushToMap(map, "block", breezEvent.block) } + is BreezEvent.InvoicePaid -> { pushToMap(map, "type", "invoicePaid") pushToMap(map, "details", readableMapOf(breezEvent.details)) } + is BreezEvent.Synced -> { pushToMap(map, "type", "synced") } + is BreezEvent.PaymentSucceed -> { pushToMap(map, "type", "paymentSucceed") pushToMap(map, "details", readableMapOf(breezEvent.details)) } + is BreezEvent.PaymentFailed -> { pushToMap(map, "type", "paymentFailed") pushToMap(map, "details", readableMapOf(breezEvent.details)) } + is BreezEvent.BackupStarted -> { pushToMap(map, "type", "backupStarted") } + is BreezEvent.BackupSucceeded -> { pushToMap(map, "type", "backupSucceeded") } + is BreezEvent.BackupFailed -> { pushToMap(map, "type", "backupFailed") pushToMap(map, "details", readableMapOf(breezEvent.details)) @@ -3805,30 +3813,37 @@ fun readableMapOf(inputType: InputType): ReadableMap? { pushToMap(map, "type", "bitcoinAddress") pushToMap(map, "address", readableMapOf(inputType.address)) } + is InputType.Bolt11 -> { pushToMap(map, "type", "bolt11") pushToMap(map, "invoice", readableMapOf(inputType.invoice)) } + is InputType.NodeId -> { pushToMap(map, "type", "nodeId") pushToMap(map, "nodeId", inputType.nodeId) } + is InputType.Url -> { pushToMap(map, "type", "url") pushToMap(map, "url", inputType.url) } + is InputType.LnUrlPay -> { pushToMap(map, "type", "lnUrlPay") pushToMap(map, "data", readableMapOf(inputType.data)) } + is InputType.LnUrlWithdraw -> { pushToMap(map, "type", "lnUrlWithdraw") pushToMap(map, "data", readableMapOf(inputType.data)) } + is InputType.LnUrlAuth -> { pushToMap(map, "type", "lnUrlAuth") pushToMap(map, "data", readableMapOf(inputType.data)) } + is InputType.LnUrlError -> { pushToMap(map, "type", "lnUrlError") pushToMap(map, "data", readableMapOf(inputType.data)) @@ -3866,6 +3881,7 @@ fun readableMapOf(lnUrlCallbackStatus: LnUrlCallbackStatus): ReadableMap? { is LnUrlCallbackStatus.Ok -> { pushToMap(map, "type", "ok") } + is LnUrlCallbackStatus.ErrorStatus -> { pushToMap(map, "type", "errorStatus") pushToMap(map, "data", readableMapOf(lnUrlCallbackStatus.data)) @@ -3907,10 +3923,12 @@ fun readableMapOf(lnUrlPayResult: LnUrlPayResult): ReadableMap? { pushToMap(map, "type", "endpointSuccess") pushToMap(map, "data", readableMapOf(lnUrlPayResult.data)) } + is LnUrlPayResult.EndpointError -> { pushToMap(map, "type", "endpointError") pushToMap(map, "data", readableMapOf(lnUrlPayResult.data)) } + is LnUrlPayResult.PayError -> { pushToMap(map, "type", "payError") pushToMap(map, "data", readableMapOf(lnUrlPayResult.data)) @@ -3949,6 +3967,7 @@ fun readableMapOf(lnUrlWithdrawResult: LnUrlWithdrawResult): ReadableMap? { pushToMap(map, "type", "ok") pushToMap(map, "data", readableMapOf(lnUrlWithdrawResult.data)) } + is LnUrlWithdrawResult.ErrorStatus -> { pushToMap(map, "type", "errorStatus") pushToMap(map, "data", readableMapOf(lnUrlWithdrawResult.data)) @@ -4064,6 +4083,7 @@ fun readableMapOf(paymentDetails: PaymentDetails): ReadableMap? { pushToMap(map, "type", "ln") pushToMap(map, "data", readableMapOf(paymentDetails.data)) } + is PaymentDetails.ClosedChannel -> { pushToMap(map, "type", "closedChannel") pushToMap(map, "data", readableMapOf(paymentDetails.data)) @@ -4196,10 +4216,12 @@ fun readableMapOf(successActionProcessed: SuccessActionProcessed): ReadableMap? pushToMap(map, "type", "aes") pushToMap(map, "result", readableMapOf(successActionProcessed.result)) } + is SuccessActionProcessed.Message -> { pushToMap(map, "type", "message") pushToMap(map, "data", readableMapOf(successActionProcessed.data)) } + is SuccessActionProcessed.Url -> { pushToMap(map, "type", "url") pushToMap(map, "data", readableMapOf(successActionProcessed.data)) From 417198bc2d28956912a082465623dab74e168c87 Mon Sep 17 00:00:00 2001 From: Ross Savage Date: Thu, 29 Feb 2024 16:13:12 +0100 Subject: [PATCH 2/2] Switch to macos-14 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6d45ff4b3..a47250fd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -178,7 +178,7 @@ jobs: react-native: name: Check react native - runs-on: macOS-latest + runs-on: macOS-14 steps: - name: Checkout repo uses: actions/checkout@v3