Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
22b8ae8
feat: add react-native-native-logger module
huhuanming Feb 26, 2026
1c2962f
fix: code review fixes for native-logger module
huhuanming Feb 26, 2026
850e309
feat: integrate OneKeyLog into native modules
huhuanming Feb 26, 2026
a38894d
feat: add NativeLogger test page to example app
huhuanming Feb 26, 2026
2297046
chore: bump version to 1.1.20
huhuanming Feb 27, 2026
da06552
chore: add native-logger as default dependency in module template
huhuanming Feb 27, 2026
b9f4cb7
fix: address code review issues for native-logger module
huhuanming Feb 27, 2026
6adfc66
fix: remove key names from keychain logs and improve comments
huhuanming Feb 27, 2026
141382a
fix: security hardening for native-logger module
huhuanming Feb 27, 2026
222f5d7
fix: final review fixes for native-logger
huhuanming Feb 27, 2026
a250bf9
fix: fix. missing log dir
huhuanming Feb 28, 2026
f8382ac
fix: audit fixes across integrated native modules
huhuanming Feb 28, 2026
51b310f
feat: add timestamp format for native log writes and copy button for …
huhuanming Feb 28, 2026
1403283
feat: add startup log in native layer for iOS and Android
huhuanming Feb 28, 2026
d3df5b3
fix: use correct autolinked Gradle project name for native-logger
huhuanming Feb 28, 2026
7d1744c
fix: auto-init OneKeyLog via ContentProvider before Application.onCreate
huhuanming Feb 28, 2026
ac01336
feat: add native modules migrated from legacy bridge architecture
huhuanming Mar 1, 2026
9c4275a
feat: add example test pages for new native modules
huhuanming Mar 1, 2026
46f1a65
fix: critical security and reliability fixes for bundle-update and ap…
huhuanming Mar 1, 2026
5f0a223
feat: implement GPG signature verification for bundle-update and app-…
huhuanming Mar 1, 2026
b2c54f8
fix: high severity issues across native modules
huhuanming Mar 1, 2026
a29cd15
fix: medium severity issues across native modules
huhuanming Mar 1, 2026
4b2ea1f
feat: vendor Gopenpgp xcframework into bundle-update module
huhuanming Mar 1, 2026
6e103dc
fix: migrate lite-card logging to NativeLogger and remove sensitive d…
huhuanming Mar 1, 2026
a92e733
fix: migrate background-thread logging to NativeLogger
huhuanming Mar 1, 2026
ff9be4f
fix: replace @import with dynamic dispatch for NativeLogger in backgr…
huhuanming Mar 1, 2026
a7c0659
chore: pod install to sync new headers and dependencies
huhuanming Mar 1, 2026
1e56aff
fix: replace @import with dynamic dispatch for NativeLogger in lite-c…
huhuanming Mar 1, 2026
961cdcb
fix: add missing deepLink parameter to LaunchOptions initializer
huhuanming Mar 1, 2026
48b3a40
chore: yarn install to link new workspace packages
huhuanming Mar 1, 2026
c7884b0
fix: add initialization log in parent TurboModule entry points
huhuanming Mar 1, 2026
e8bb5a3
fix: use module-qualified class name and typed IMP for OneKeyLog disp…
huhuanming Mar 1, 2026
d9275f2
chore: pod install to add app-update, bundle-update and related pods
huhuanming Mar 1, 2026
b43f6d3
fix: add override keyword to ReactNativeBundleUpdate init
huhuanming Mar 1, 2026
6082c5b
fix: fix compilation errors in ReactNativeBundleUpdate
huhuanming Mar 1, 2026
3a4d7dc
fix: fix remaining BundleUpdate compilation errors
huhuanming Mar 1, 2026
790e1bd
fix: security hardening across native modules
huhuanming Mar 2, 2026
2bbd7e2
fix: comprehensive security hardening across all native modules (roun…
huhuanming Mar 2, 2026
d7975a2
fix: security hardening round 3 - metadata validation, downgrade prot…
huhuanming Mar 2, 2026
aafe7a0
Update KeychainModuleCore.swift
huhuanming Mar 2, 2026
46c992f
feat: replace debug-mode GPG skip with MMKV DevSettings toggle
huhuanming Mar 2, 2026
891d8bc
feat: add saveDeviceToken to DeviceUtils and make exitApp a no-op on iOS
huhuanming Mar 2, 2026
e87c4d0
fix: add logging for invalid byteLength in GetRandomValues
huhuanming Mar 2, 2026
097d1f6
feat: implement Android legacy splash screen with SplashScreenBridge
huhuanming Mar 2, 2026
3d8de2e
feat: merge react-native-webview-checker into react-native-device-utils
huhuanming Mar 2, 2026
e3d0086
feat: add WebView & Play Services examples to DeviceUtils test page
huhuanming Mar 2, 2026
65f9da4
update podfile
huhuanming Mar 2, 2026
56474b3
chore: update Podfile.lock to v1.1.21, remove ReactNativeWebviewChecker
huhuanming Mar 2, 2026
165e812
fix: fix iOS build errors in BundleUpdate (MMKV and SSZipArchive API)
huhuanming Mar 2, 2026
0fb0dd1
fix: remove SSZipArchive payloadSize call that fails to compile
huhuanming Mar 2, 2026
4ecf401
fix: pass archived path to super.didArchiveLogFile to prevent crash
huhuanming Mar 2, 2026
a63cd2e
feat: add download bundle test with platform-specific default URLs
huhuanming Mar 2, 2026
3740911
feat: redesign BundleUpdateTestPage with step-by-step pipeline UI
huhuanming Mar 2, 2026
36a6bbb
fix: fix missing funcs
huhuanming Mar 2, 2026
b681236
fix: move PGP signature to verifyBundleASC step in BundleUpdateTestPage
huhuanming Mar 2, 2026
e0cf5e7
feat: add comprehensive logging to AppUpdate and BundleUpdate native …
huhuanming Mar 2, 2026
1d64cc0
feat: add logging to all remaining BundleUpdate functions (iOS + Andr…
huhuanming Mar 3, 2026
3ecfa7c
fix: fix Android build errors across native modules
huhuanming Mar 3, 2026
5b8e85f
fix: add BuildConfig import to lite-card LogUtil
huhuanming Mar 3, 2026
5244d62
fix: use host app FLAG_DEBUGGABLE instead of library BuildConfig.DEBUG
huhuanming Mar 3, 2026
cc8b6dd
feat: redesign AppUpdateTestPage with pipeline UI matching BundleUpda…
huhuanming Mar 3, 2026
2e06d0a
Update BundleUpdateTestPage.tsx
huhuanming Mar 3, 2026
0b5ce78
feat: improve app-update download with sandbox path fix, error loggin…
huhuanming Mar 3, 2026
e659336
refactor: remove filePath from AppUpdate API, derive from downloadUrl
huhuanming Mar 3, 2026
110e76e
fix: fix remaining params.filePath reference in installAPK
huhuanming Mar 3, 2026
9a88df0
fix: fix download progress events and prevent duplicate downloads in …
huhuanming Mar 3, 2026
a10caf3
Update AppUpdateTestPage.tsx
huhuanming Mar 3, 2026
8ec0be1
fix: skip packageName and certificate checks in debug builds, still l…
huhuanming Mar 3, 2026
c8a32f4
feat: add Download ASC and Verify ASC steps to AppUpdate pipeline
huhuanming Mar 3, 2026
797ec96
refactor: unify AppUpdate event types with update/ prefix
huhuanming Mar 3, 2026
621f1ce
fix: add BouncyCastle provider dependency and registration for GPG ve…
huhuanming Mar 3, 2026
1255a44
fix: use BouncyCastle provider instance instead of string name to avo…
huhuanming Mar 3, 2026
9cb2457
fix: add FileProvider config for APK install intent
huhuanming Mar 3, 2026
3cb5df2
fix: move bcProvider to BundleUpdateStoreAndroid where it's used
huhuanming Mar 3, 2026
93e8a36
feat: add download progress logging and error catch in bundle-update …
huhuanming Mar 3, 2026
059e222
Update BundleUpdateTestPage.tsx
huhuanming Mar 3, 2026
0a6408e
feat: add download progress logging in iOS bundle-update
huhuanming Mar 3, 2026
4fa7448
fix: add diagnostic logging for bundle download file creation
huhuanming Mar 3, 2026
b2cf9ce
Update BundleUpdateTestPage.tsx
huhuanming Mar 3, 2026
ea20515
Update BundleUpdateTestPage.tsx
huhuanming Mar 3, 2026
ba2c879
Update BundleUpdateTestPage.tsx
huhuanming Mar 3, 2026
0edcd56
fix: add detailed diagnostic logging to getJsBundlePath on Android an…
huhuanming Mar 3, 2026
37fc186
Update BundleUpdateTestPage.tsx
huhuanming Mar 3, 2026
cebb488
feat: migrate signature storage from SharedPreferences/UserDefaults t…
huhuanming Mar 3, 2026
52192c8
fix: add logging to writeSignatureFile and readSignatureFile on both …
huhuanming Mar 3, 2026
69e67a3
fix: add filePath field to AscFileInfo in listAscFiles API
huhuanming Mar 3, 2026
99dc464
fix: expose BundleUpdateStore to ObjC runtime and bump to 1.1.22
huhuanming Mar 3, 2026
d38cf15
Update package.json
huhuanming Mar 3, 2026
40973af
Update Podfile.lock
huhuanming Mar 3, 2026
80091c3
fix: address PR review security and robustness issues
huhuanming Mar 3, 2026
30034ef
fix: use onekey-app-dev-setting MMKV instance and require dual check …
huhuanming Mar 3, 2026
287541f
chore: bump native modules and views version to 1.1.23
huhuanming Mar 3, 2026
1f9c315
fix: address Copilot review - stack traces, import Security, FileProv…
huhuanming Mar 4, 2026
503fc03
chore: bump native modules and views version to 1.1.24
huhuanming Mar 4, 2026
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.facebook.react.ReactApplication
import com.facebook.react.ReactHost
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.margelo.nitro.nativelogger.OneKeyLog

class MainApplication : Application(), ReactApplication {

Expand All @@ -22,6 +23,7 @@ class MainApplication : Application(), ReactApplication {

override fun onCreate() {
super.onCreate()
OneKeyLog.info("App", "Application started")
loadReactNative(this)
}
}
1 change: 1 addition & 0 deletions example/react-native/ios/Example-Bridging-header.h
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#import "BackgroundRunnerModule.h"
#import "OneKeyLogBridge.h"
5 changes: 5 additions & 0 deletions example/react-native/ios/OneKeyLogBridge.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>

@interface OneKeyLogBridge : NSObject
+ (void)info:(NSString *)tag message:(NSString *)message;
@end
23 changes: 23 additions & 0 deletions example/react-native/ios/OneKeyLogBridge.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#import "OneKeyLogBridge.h"

// OneKeyLog is an @objc public Swift class in ReactNativeNativeLogger pod.
// We use forward declaration + performSelector to avoid importing the
// ReactNativeNativeLogger module (which fails due to C++ headers in NitroModules).
@implementation OneKeyLogBridge

+ (void)info:(NSString *)tag message:(NSString *)message {
Class cls = NSClassFromString(@"ReactNativeNativeLogger.OneKeyLog");
if (!cls) {
cls = NSClassFromString(@"OneKeyLog");
}
if (cls) {
SEL sel = NSSelectorFromString(@"info::");
if ([cls respondsToSelector:sel]) {
typedef void (*InfoFunc)(id, SEL, NSString *, NSString *);
InfoFunc func = (InfoFunc)[cls methodForSelector:sel];
func(cls, sel, tag, message);
}
}
}

@end
Loading