Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit 99b30f2

Browse files
authored
feat: replace the rnconfig to keylib (#1)
1 parent 8598b02 commit 99b30f2

File tree

18 files changed

+378
-193
lines changed

18 files changed

+378
-193
lines changed

.github/actions/setup/action.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 151 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: package-publish
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
package-publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: '18.x'
13+
registry-url: 'https://registry.npmjs.org'
14+
- name: Install Package
15+
run: yarn
16+
- name: Build
17+
run: yarn prepare
18+
- name: Publish
19+
env:
20+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
21+
run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc && yarn publish

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,7 @@ android/keystores/debug.keystore
7676

7777
# generated by bob
7878
lib/
79+
80+
81+
# key
82+
*.secret

android/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def supportsNamespace() {
4444

4545
android {
4646
if (supportsNamespace()) {
47-
namespace "com.litecard"
47+
namespace "so.onekey.app.wallet"
4848

4949
sourceSets {
5050
main {
@@ -53,6 +53,12 @@ android {
5353
}
5454
}
5555

56+
externalNativeBuild {
57+
cmake {
58+
path "src/main/cpp/CMakeLists.txt"
59+
}
60+
}
61+
5662
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
5763

5864
defaultConfig {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
cmake_minimum_required(VERSION 3.4.1)
2+
3+
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Os -Oz")
4+
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Os -Oz")
5+
set(CMAKE_C_VISIBILITY_PRESET hidden)
6+
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
7+
8+
add_library(keys SHARED
9+
../../../../keys/keys.c
10+
validation.c)
11+
12+
# Include libraries needed for native-lib lib
13+
target_link_libraries(keys
14+
android
15+
log)

0 commit comments

Comments
 (0)