Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .github/workflows/validate-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
paths:
- '.github/workflows/validate-cpp.yml'
- '.gitmodules'
- 'packages/react-native-quick-crypto/android/src/main/cpp/**'
- 'packages/react-native-quick-crypto/android/src/reactnative/cpp/**'
- 'packages/react-native-quick-crypto/cpp/**'
- 'packages/react-native-quick-crypto/deps/ncrypto'
- 'packages/react-native-quick-crypto/deps/ncrypto/**'
Expand All @@ -17,7 +17,7 @@ on:
paths:
- '.github/workflows/validate-cpp.yml'
- '.gitmodules'
- 'packages/react-native-quick-crypto/android/src/main/cpp/**'
- 'packages/react-native-quick-crypto/android/src/reactnative/cpp/**'
- 'packages/react-native-quick-crypto/cpp/**'
- 'packages/react-native-quick-crypto/deps/ncrypto'
- 'packages/react-native-quick-crypto/deps/ncrypto/**'
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Run clang-format check
run: |
find packages/react-native-quick-crypto/cpp \
packages/react-native-quick-crypto/android/src/main/cpp \
packages/react-native-quick-crypto/android/src/reactnative/cpp \
packages/react-native-quick-crypto/deps/ncrypto/include \
packages/react-native-quick-crypto/deps/ncrypto/src \
-regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\)' \
Expand All @@ -82,7 +82,7 @@ jobs:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
flags: --linelength=140
targets: --recursive packages/react-native-quick-crypto/cpp packages/react-native-quick-crypto/android/src/main/cpp
targets: --recursive packages/react-native-quick-crypto/cpp packages/react-native-quick-crypto/android/src/reactnative/cpp
filter: "-legal/copyright\
,-readability/todo\
,-build/namespaces\
Expand Down
322 changes: 321 additions & 1 deletion bun.lock

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions example-nitro/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules/
.nitro/
.DS_Store
*.tsbuildinfo
**/xcuserdata/
android/.gradle/
android/.kotlin/
android/local.properties
android/**/build/
android/**/.cxx/
41 changes: 41 additions & 0 deletions example-nitro/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("com.margelo.nitroui")
}

android {
namespace = "com.example.quickcryptonitro"
compileSdk = 36
ndkVersion = "29.0.14206865"
defaultConfig {
applicationId = "com.example.quickcryptonitro"
minSdk = 26
targetSdk = 36
versionCode = 1
versionName = "1.0"
}
signingConfigs {
getByName("debug") {
storeFile = file("debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
}
}
buildTypes {
getByName("debug") {
signingConfig = signingConfigs.getByName("debug")
}
getByName("release") {
// Caution! In production, you need to generate your own keystore file.
// See https://developer.android.com/studio/publish/app-signing.
signingConfig = signingConfigs.getByName("debug")
}
}
}

dependencies {
val runtime = project(":runtime")
implementation(runtime)
}
Binary file added example-nitro/android/app/debug.keystore
Binary file not shown.
3 changes: 3 additions & 0 deletions example-nitro/android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application android:usesCleartextTraffic="true" />
</manifest>
11 changes: 11 additions & 0 deletions example-nitro/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<application android:label="@string/app_name" android:theme="@style/NitroUITheme">
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example.quickcryptonitro

import com.margelo.nitroui.runtime.NitroActivity

class MainActivity : NitroActivity()
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<resources>
<style name="NitroUITheme" parent="Theme.Material3.DayNight.NoActionBar">
<item name="android:windowLightStatusBar">false</item>
<item name="android:windowLightNavigationBar">false</item>
</style>
</resources>
3 changes: 3 additions & 0 deletions example-nitro/android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="app_name">QuickCryptoNitro</string>
</resources>
6 changes: 6 additions & 0 deletions example-nitro/android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<resources>
<style name="NitroUITheme" parent="Theme.Material3.DayNight.NoActionBar">
<item name="android:windowLightStatusBar">true</item>
<item name="android:windowLightNavigationBar">true</item>
</style>
</resources>
5 changes: 5 additions & 0 deletions example-nitro/android/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
plugins {
id("com.android.application") version "8.13.2" apply false
id("com.android.library") version "8.13.2" apply false
id("org.jetbrains.kotlin.android") version "2.2.0" apply false
}
3 changes: 3 additions & 0 deletions example-nitro/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
android.useAndroidX=true
kotlin.code.style=official
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
248 changes: 248 additions & 0 deletions example-nitro/android/gradlew

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

Loading