Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## [1.1.30] - 2026-03-06

### Features
- **bundle-update / app-update**: Add synchronous `isSkipGpgVerificationAllowed` API to expose whether build-time skip-GPG capability is enabled

## [1.1.29] - 2026-03-06

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion native-modules/native-logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-native-logger",
"version": "1.1.29",
"version": "1.1.30",
"description": "react-native-native-logger",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ Pod::Spec.new do |s|
"cpp/**/*.{hpp,cpp}",
]

# When ONEKEY_ALLOW_SKIP_GPG_VERIFICATION env var is set to a non-empty, non-'false' value,
# enable the ALLOW_SKIP_GPG_VERIFICATION Swift compilation condition.
if ENV['ONEKEY_ALLOW_SKIP_GPG_VERIFICATION'] && ENV['ONEKEY_ALLOW_SKIP_GPG_VERIFICATION'] != '' && ENV['ONEKEY_ALLOW_SKIP_GPG_VERIFICATION'] != 'false'
s.pod_target_xcconfig = {
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) ALLOW_SKIP_GPG_VERIFICATION'
}
end

s.dependency 'React-jsi'
s.dependency 'React-callinvoker'
s.dependency 'ReactNativeNativeLogger'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,12 @@ n2DMz6gqk326W6SFynYtvuiXo7wG4Cmn3SuIU8xfv9rJqunpZGYchMd7nZektmEJ
}
}

override fun isSkipGpgVerificationAllowed(): Boolean {
val result = BuildConfig.ALLOW_SKIP_GPG_VERIFICATION
OneKeyLog.info("AppUpdate", "isSkipGpgVerificationAllowed: result=$result")
return result
}

override fun clearCache(): Promise<Unit> {
return Promise.async {
OneKeyLog.info("AppUpdate", "clearCache: starting cleanup...")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ class ReactNativeAppUpdate: HybridReactNativeAppUpdateSpec {
return Promise.resolved(withResult: false)
}

func isSkipGpgVerificationAllowed() throws -> Bool {
#if ALLOW_SKIP_GPG_VERIFICATION
let result = true
#else
let result = false
#endif
OneKeyLog.info("AppUpdate", "isSkipGpgVerificationAllowed: result=\(result)")
return result
}

func clearCache() throws -> Promise<Void> {
return Promise.resolved(withResult: ())
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion native-modules/react-native-app-update/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-app-update",
"version": "1.1.29",
"version": "1.1.30",
"description": "react-native-app-update",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface ReactNativeAppUpdate
// Verification & testing
testVerification(): Promise<boolean>;
testSkipVerification(): Promise<boolean>;
isSkipGpgVerificationAllowed(): boolean;

addDownloadListener(callback: (event: DownloadEvent) => void): number;
removeDownloadListener(id: number): void;
Expand Down
2 changes: 1 addition & 1 deletion native-modules/react-native-background-thread/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-background-thread",
"version": "1.1.29",
"version": "1.1.30",
"description": "react-native-background-thread",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,12 @@ n2DMz6gqk326W6SFynYtvuiXo7wG4Cmn3SuIU8xfv9rJqunpZGYchMd7nZektmEJ
}
}

override fun isSkipGpgVerificationAllowed(): Boolean {
val result = BuildConfig.ALLOW_SKIP_GPG_VERIFICATION
OneKeyLog.info("BundleUpdate", "isSkipGpgVerificationAllowed: result=$result")
return result
}

override fun isBundleExists(appVersion: String, bundleVersion: String): Promise<Boolean> {
return Promise.async {
val context = getContext()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,16 @@ class ReactNativeBundleUpdate: HybridReactNativeBundleUpdateSpec {
}
}

func isSkipGpgVerificationAllowed() throws -> Bool {
#if ALLOW_SKIP_GPG_VERIFICATION
let result = true
#else
let result = false
#endif
OneKeyLog.info("BundleUpdate", "isSkipGpgVerificationAllowed: result=\(result)")
return result
}

func isBundleExists(appVersion: String, bundleVersion: String) throws -> Promise<Bool> {
return Promise.async {
let folderName = "\(appVersion)-\(bundleVersion)"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion native-modules/react-native-bundle-update/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-bundle-update",
"version": "1.1.29",
"version": "1.1.30",
"description": "react-native-bundle-update",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export interface ReactNativeBundleUpdate
// Verification & testing
testVerification(): Promise<boolean>;
testSkipVerification(): Promise<boolean>;
isSkipGpgVerificationAllowed(): boolean;
isBundleExists(appVersion: string, bundleVersion: string): Promise<boolean>;
verifyExtractedBundle(
appVersion: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-check-biometric-auth-changed",
"version": "1.1.29",
"version": "1.1.30",
"description": "react-native-check-biometric-auth-changed",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion native-modules/react-native-cloud-kit-module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-cloud-kit-module",
"version": "1.1.29",
"version": "1.1.30",
"description": "react-native-cloud-kit-module",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion native-modules/react-native-device-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-device-utils",
"version": "1.1.29",
"version": "1.1.30",
"description": "react-native-device-utils",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion native-modules/react-native-get-random-values/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-get-random-values",
"version": "1.1.29",
"version": "1.1.30",
"description": "react-native-get-random-values",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion native-modules/react-native-keychain-module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-keychain-module",
"version": "1.1.29",
"version": "1.1.30",
"description": "react-native-keychain-module",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion native-modules/react-native-lite-card/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/react-native-lite-card",
"version": "1.1.29",
"version": "1.1.30",
"description": "lite card",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
Loading