Skip to content

Commit 1c0ca92

Browse files
authored
Merge pull request #1071 from WalletConnect/develop
BOM 1.15.0
2 parents 87b1e6d + 9d929ec commit 1c0ca92

File tree

157 files changed

+4683
-1270
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+4683
-1270
lines changed

.github/workflows/ci_assemble.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Assemble Debug Project
4444
env:
4545
WC_CLOUD_PROJECT_ID: ${{ secrets.WC_CLOUD_PROJECT_ID }}
46-
run: ./gradlew assembleDebug -x :sample:wallet:assembleDebug -x :sample:dapp:assembleDebug -x :sample:common:assembleDebug
46+
run: ./gradlew assembleDebug -x :sample:wallet:assembleDebug -x :sample:dapp:assembleDebug -x :sample:common:assembleDebug -x :sample:inbox:assembleDebug
4747

4848
- name: Stop Gradle
4949
run: ./gradlew --stop

.github/workflows/ci_release_sample.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
conf: [
1111
{ name: wallet, command: ":sample:wallet:assembleRelease :sample:wallet:appDistributionUploadRelease" },
1212
{ name: dapp, command: ":sample:dapp:assembleRelease :sample:dapp:appDistributionUploadRelease" }
13+
{ name: inbox, command: ":sample:inbox:assembleRelease :sample:inbox:appDistributionUploadRelease" }
1314
]
1415
name: ${{ matrix.conf.name }}
1516
runs-on: ubuntu-latest

.github/workflows/ci_scheduled.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ name: Kotlin Scheduled Integration
33
on:
44
schedule:
55
- cron: '0 0,12 * * *' # Runs every day at 0:00 and 12:00 UTC
6+
workflow_dispatch:
7+
inputs:
8+
testTimeoutSeconds:
9+
description: 'Seconds for test timeout'
10+
required: true
11+
default: 40 # should be same as env.TEST_TIMEOUT_SECONDS
12+
shouldUseCache:
13+
description: 'Flag to use and save cache gradle. Tests results are cached!'
14+
required: true
15+
default: false
16+
17+
env:
18+
TEST_TIMEOUT_SECONDS: 40 # Predefined timeout for integration tests
619

720
jobs:
821
# Copy of ci_relay.yml
@@ -18,54 +31,41 @@ jobs:
1831
TEST_PROJECT_ID: ${{ secrets.WC_CLOUD_PROJECT_ID }}
1932
uses: ./.github/actions/ci_relay
2033

21-
- name: Send GitHub Action trigger data to Slack workflow
22-
if: failure()
23-
id: slack
24-
uses: slackapi/[email protected]
25-
with:
26-
payload: |
27-
{
28-
"action_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
29-
}
30-
env:
31-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_SCHEDULED_CI_WEBHOOK_URL }}
34+
# Copy of ci_instrumented_test.yml
35+
# sdk_tests:
36+
# strategy:
37+
# fail-fast: false
38+
# matrix:
39+
# conf: [
40+
# { name: 'Sign_SDK', command: ":protocol:sign:allDevicesCheck" },
41+
# { name: 'Android_Core_SDK', command: ":core:android:allDevicesCheck" },
42+
# ]
3243

44+
# name: ${{ matrix.conf.name }}
45+
# runs-on: self-hosted
46+
# steps:
47+
# - uses: actions/checkout@v3
3348

34-
# Copy of ci_instrumented_test.yml
35-
sdk_tests:
36-
strategy:
37-
fail-fast: false
38-
matrix:
39-
conf: [
40-
{ name: Sign SDK, command: ":protocol:sign:connectedCheck", report: '/Users/runner/work/WalletConnectKotlinV2/WalletConnectKotlinV2/protocol/sign/build/reports/**' },
41-
{ name: Android Core SDK, command: ":core:android:connectedCheck", report: '/Users/runner/work/WalletConnectKotlinV2/WalletConnectKotlinV2/core/android/build/reports/**' },
42-
]
43-
api-level: [ 32 ] # JUnit5 only supports API younger or equal to 26
44-
target: [ google_apis ]
45-
profile: [ Nexus 6 ]
46-
arch: [ arm64-v8a ]
49+
# - name: Run instrumented tests
50+
# uses: ./.github/actions/ci_instrumented_tests
51+
# with:
52+
# shouldUseCache: ${{ github.event.inputs.testTimeoutSeconds || true }} # Setting to true faster pass unchanged code
53+
# name: ${{ matrix.conf.name }}
54+
# command: ${{ matrix.conf.command }}
55+
# report: ${{ matrix.conf.report }}
56+
# projectId: ${{ secrets.WC_CLOUD_PROJECT_ID }}
57+
# testTimeoutSeconds: ${{ github.event.inputs.testTimeoutSeconds || env.TEST_TIMEOUT_SECONDS }} # Prioritise dispatch input timeout over env one
4758

48-
name: ${{ matrix.conf.name }} API ${{ matrix.api-level }}-${{ matrix.target }}-${{ matrix.profile }}-${{ matrix.arch }}
49-
runs-on: self-hosted
59+
trigger_slack_webhook:
60+
runs-on: ubuntu-latest
61+
# needs: [sdk_tests, relay_tests]
62+
needs: [relay_tests]
63+
if: failure()
5064
steps:
51-
- uses: actions/checkout@v3
52-
53-
- name: Run instrumented tests
54-
uses: ./.github/actions/ci_instrumented_tests
55-
with:
56-
shouldCache: true
57-
name: ${{ matrix.conf.name }}
58-
command: ${{ matrix.conf.command }}
59-
report: ${{ matrix.conf.report }}
60-
projectId: ${{ secrets.WC_CLOUD_PROJECT_ID }}
61-
testTimeoutSeconds: ${{ github.event.inputs.testTimeoutSeconds || env.TEST_TIMEOUT_SECONDS }} # Prioritise dispatch input timeout over env one
62-
api-level: ${{ matrix.api-level }}
63-
target: ${{ matrix.target }}
64-
profile: ${{ matrix.profile }}
65-
arch: ${{ matrix.arch }}
65+
- name: Checkout
66+
uses: actions/checkout@v3
6667

6768
- name: Send GitHub Action trigger data to Slack workflow
68-
if: failure()
6969
id: slack
7070
uses: slackapi/[email protected]
7171
with:

ReadMe.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ WalletConnect v2 protocols for Android applications.
1010

1111
| BOM | [Core SDK](core/android) | [Sign SDK](protocol/sign) | [Auth SDK](protocol/auth) | [Chat SDK](protocol/chat) | [Push SDK](protocol/push) | [web3wallet](product/web3wallet) | [web3inbox](product/web3inbox) | [WalletConnectModal](product/walletconnectmodal) |
1212
|-----------------------------------------------------------------------------------------|--------------------------|---------------------------|---------------------------|---------------------------|---------------------------|----------------------------------|--------------------------------|--------------------------------------------------|
13+
| 1.15.0 | 1.20.0 | 2.18.0 | 1.18.0 | 1.0.0-beta16 | 1.0.0-alpha11 | 1.13.0 | 1.0.0-alpha16 | 1.0.0-alpha03 |
1314
| 1.14.0 | 1.19.0 | 2.17.0 | 1.17.0 | 1.0.0-beta15 | 1.0.0-alpha10 | 1.12.0 | 1.0.0-alpha15 | 1.0.0-alpha02 |
1415
| 1.13.1 | 1.18.0 | 2.16.0 | 1.16.0 | 1.0.0-beta14 | | 1.11.0 | 1.0.0-alpha14 | 1.0.0-alpha01 |
1516
| 1.12.0 | 1.17.0 | 2.15.0 | 1.15.0 | 1.0.0-beta13 | | 1.10.0 | 1.0.0-alpha13 | |

buildSrc/src/main/kotlin/Dependencies.kt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,16 @@ fun DependencyHandlerScope.kethereum() {
159159
"api"("com.github.komputing.kethereum:crypto_impl_spongycastle:$kethereumVersion")
160160
}
161161

162-
fun DependencyHandlerScope.fcm() {
163-
"implementation"("com.google.firebase:firebase-messaging:$fcmVersion")
162+
fun DependencyHandlerScope.firebaseMessaging() {
163+
"implementation"(platform("com.google.firebase:firebase-bom:$firebaseBomVersion"))
164+
"implementation"("com.google.firebase:firebase-messaging")
165+
}
166+
167+
168+
fun DependencyHandlerScope.firebaseChrashlytics() {
169+
"implementation"(platform("com.google.firebase:firebase-bom:$firebaseBomVersion"))
170+
"implementation"("com.google.firebase:firebase-crashlytics-ktx")
171+
"implementation"("com.google.firebase:firebase-analytics-ktx")
164172
}
165173

166174
fun DependencyHandlerScope.compose() {

buildSrc/src/main/kotlin/Versions.kt

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ const val KEY_PUBLISH_ARTIFACT_ID = "PUBLISH_ARTIFACT_ID"
55
const val KEY_SDK_NAME = "SDK_NAME"
66

77
//Latest versions
8-
const val BOM_VERSION = "1.14.0"
9-
const val FOUNDATION_VERSION = "1.10.0"
10-
const val CORE_VERSION = "1.19.0"
11-
const val SIGN_VERSION = "2.17.0"
12-
const val AUTH_VERSION = "1.17.0"
13-
const val CHAT_VERSION = "1.0.0-beta15"
14-
const val PUSH_VERSION = "1.0.0-alpha10"
15-
const val WEB_3_WALLET = "1.12.0"
16-
const val WEB_3_INBOX = "1.0.0-alpha15"
17-
const val WEB_3_MODAL = "1.0.0-alpha06"
18-
const val WC_MODAL_VERSION = "1.0.0-alpha02"
19-
const val MODAL_CORE_VERSION = "1.0.0-alpha02"
8+
const val BOM_VERSION = "1.15.0"
9+
const val FOUNDATION_VERSION = "1.11.0"
10+
const val CORE_VERSION = "1.20.0"
11+
const val SIGN_VERSION = "2.18.0"
12+
const val AUTH_VERSION = "1.18.0"
13+
const val CHAT_VERSION = "1.0.0-beta16"
14+
const val PUSH_VERSION = "1.0.0-alpha11"
15+
const val WEB_3_WALLET = "1.13.0"
16+
const val WEB_3_INBOX = "1.0.0-alpha16"
17+
const val WEB_3_MODAL = "1.0.0-alpha07"
18+
const val WC_MODAL_VERSION = "1.0.0-alpha03"
19+
const val MODAL_CORE_VERSION = "1.0.0-alpha03"
2020

2121
val jvmVersion = JavaVersion.VERSION_11
2222
const val MIN_SDK: Int = 23
@@ -69,3 +69,4 @@ const val materialVersion = "1.9.0"
6969
const val coilVersion = "2.3.0"
7070
const val customQrGeneratorVersion = "1.6.2"
7171
const val turbineVersion = "1.0.0"
72+
const val firebaseBomVersion = "32.2.0"

core/android/src/main/kotlin/com/walletconnect/android/internal/Messages.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package com.walletconnect.android.internal
44
internal const val MALFORMED_PAIRING_URI_MESSAGE: String = "Pairing URI string is invalid."
55

66
@JvmSynthetic
7-
internal const val PAIRING_NOW_ALLOWED_MESSAGE: String = "Pair with existing pairing is not allowed"
7+
internal const val PAIRING_NOW_ALLOWED_MESSAGE: String = "Pair with existing pairing is not allowed, please refresh QR code"
88

99
@JvmSynthetic
1010
internal const val NO_SEQUENCE_FOR_TOPIC_MESSAGE: String = "Cannot find sequence for given topic: "

core/android/src/main/kotlin/com/walletconnect/android/internal/common/di/ExplorerModule.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ internal fun explorerModule() = module {
2828

2929
single {
3030
ExplorerRepository(
31+
context = get(),
3132
explorerService = get(),
3233
projectId = get(),
3334
explorerApiUrl = get(named(AndroidCommonDITags.EXPLORER_URL)),

core/android/src/main/kotlin/com/walletconnect/android/internal/common/exception/PeerError.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ sealed class Invalid : Error {
2525
object RequestExpired: Invalid() {
2626
override val message: String = "Request expired or expiry param validation failed (MIN_INTERVAL: 300, MAX_INTERVAL: 604800)"
2727
override val code: Int = 8000
28-
2928
}
3029
}
3130

core/android/src/main/kotlin/com/walletconnect/android/internal/common/explorer/ExplorerRepository.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.walletconnect.android.internal.common.explorer
22

3+
import android.content.Context
34
import androidx.core.net.toUri
45
import com.walletconnect.android.BuildConfig
56
import com.walletconnect.android.internal.common.explorer.data.model.App
@@ -28,8 +29,10 @@ import com.walletconnect.android.internal.common.explorer.data.network.model.Wal
2829
import com.walletconnect.android.internal.common.explorer.data.network.model.SupportedStandardDTO
2930
import com.walletconnect.android.internal.common.explorer.data.network.model.WalletListingDTO
3031
import com.walletconnect.android.internal.common.model.ProjectId
32+
import com.walletconnect.android.utils.isWalletInstalled
3133

3234
class ExplorerRepository(
35+
private val context: Context,
3336
private val explorerService: ExplorerService,
3437
private val projectId: ProjectId,
3538
private val explorerApiUrl: String
@@ -84,7 +87,7 @@ class ExplorerRepository(
8487
nativeLink = mobile.native,
8588
universalLink = mobile.universal,
8689
playStoreLink = app.android
87-
)
90+
).apply { isWalletInstalled = context.packageManager.isWalletInstalled(this) }
8891
}
8992

9093
private fun String.buildWalletImageUrl(): String {

0 commit comments

Comments
 (0)