Skip to content

Commit bbf3a4e

Browse files
committed
v0.4.0 - Mobile UI Redesign
1 parent 76f64b6 commit bbf3a4e

File tree

17 files changed

+1922
-392
lines changed

17 files changed

+1922
-392
lines changed

android/app/build.gradle

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,19 @@ android {
88
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
1010
versionCode 2
11-
versionName "2.0"
11+
versionName "0.4.0"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1313
aaptOptions {
1414
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
1515
// Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
1616
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
1717
}
18+
resValue "string", "server_url", "https://sync.trustynotes.app"
19+
resValue "color", "colorPrimary", "#3366FF"
20+
resValue "color", "colorPrimaryDark", "#1A1B1E"
21+
resValue "color", "colorAccent", "#5288FF"
1822
}
19-
buildTypes {
20-
release {
21-
minifyEnabled false
22-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
23-
}
24-
}
23+
2524
signingConfigs {
2625
release {
2726
def props = new Properties()
@@ -35,6 +34,7 @@ android {
3534
}
3635
}
3736
}
37+
3838
buildTypes {
3939
release {
4040
signingConfig signingConfigs.release
@@ -60,6 +60,7 @@ dependencies {
6060
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
6161
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
6262
implementation project(':capacitor-cordova-android-plugins')
63+
implementation "androidx.security:security-crypto:1.1.0-alpha06"
6364
}
6465

6566
apply from: 'capacitor.build.gradle'

android/app/capacitor.build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ android {
1010
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
1111
dependencies {
1212
implementation project(':capacitor-app')
13+
implementation project(':capacitor-dialog')
1314
implementation project(':capacitor-keyboard')
1415
implementation project(':capacitor-preferences')
1516
implementation project(':capacitor-splash-screen')

android/app/src/main/res/values/styles.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
<resources>
33

44
<!-- Base application theme. -->
5-
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
5+
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
66
<!-- Customize your theme here. -->
77
<item name="colorPrimary">@color/colorPrimary</item>
88
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
99
<item name="colorAccent">@color/colorAccent</item>
10+
<item name="android:windowBackground">@color/colorPrimaryDark</item>
11+
<item name="android:navigationBarColor">@color/colorPrimaryDark</item>
12+
<item name="android:statusBarColor">@color/colorPrimaryDark</item>
1013
</style>
1114

1215
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
@@ -18,5 +21,7 @@
1821

1922
<style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
2023
<item name="android:background">@drawable/splash</item>
24+
<item name="android:statusBarColor">@color/colorPrimaryDark</item>
25+
<item name="android:navigationBarColor">@color/colorPrimaryDark</item>
2126
</style>
2227
</resources>

android/capacitor.settings.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/
55
include ':capacitor-app'
66
project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android')
77

8+
include ':capacitor-dialog'
9+
project(':capacitor-dialog').projectDir = new File('../node_modules/@capacitor/dialog/android')
10+
811
include ':capacitor-keyboard'
912
project(':capacitor-keyboard').projectDir = new File('../node_modules/@capacitor/keyboard/android')
1013

bun.lockb

152 Bytes
Binary file not shown.

capacitor.config.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"bundledWebRuntime": false,
66
"plugins": {
77
"SplashScreen": {
8-
"launchShowDuration": 2000,
8+
"launchShowDuration": 1500,
99
"backgroundColor": "#1A1B1E",
1010
"androidSplashResourceName": "splash",
1111
"androidScaleType": "CENTER_CROP",
@@ -21,10 +21,12 @@
2121
"StatusBar": {
2222
"style": "dark",
2323
"backgroundColor": "#1A1B1E",
24-
"overlaysWebView": false
24+
"overlaysWebView": false,
25+
"animation": "fade"
2526
}
2627
},
2728
"server": {
28-
"androidScheme": "https"
29+
"androidScheme": "https",
30+
"cleartext": false
2931
}
3032
}

desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "trusty-notes-electron",
3-
"version": "0.3.1",
3+
"version": "0.4.0",
44
"main": "main.js",
55
"type": "commonjs",
66
"description": "TrustyNotes is a simple, secure, and reliable note-taking app",

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "trusty-notes-web",
33
"private": true,
4-
"version": "0.3.1",
4+
"version": "0.4.0",
55
"type": "module",
66
"description": "TrustyNotes is a simple, secure, and reliable note-taking app",
77
"author": "Toolworks.dev",
@@ -17,25 +17,26 @@
1717
"dist:linux": "bun run build:electron && cd desktop && bun run build:linux",
1818
"dist:windows": "bun run build:electron && cd desktop && bun run build:windows",
1919
"dist:all": "bun run build:electron && cd desktop && bun run build:all",
20-
"generate-android-icons": "node scripts/generate-android-icons.js",
21-
"android": "npm run build && bunx cap sync && bunx cap open android",
22-
"build:android": "npm run build && bunx cap sync && cd android && ./gradlew assembleRelease",
20+
"generate-android-icons": "bun scripts/generate-android-icons.js",
21+
"android": "bun run build && bunx cap sync && bunx cap open android",
22+
"build:android": "bun run build && bunx cap sync && cd android && ./gradlew assembleRelease",
2323
"add:android": "bunx cap add android"
2424
},
2525
"dependencies": {
2626
"@capacitor/android": "^7.0.1",
2727
"@capacitor/app": "^7.0.0",
2828
"@capacitor/cli": "^7.0.1",
2929
"@capacitor/core": "^7.0.1",
30+
"@capacitor/dialog": "^7.0.0",
3031
"@capacitor/ios": "^7.0.1",
3132
"@capacitor/keyboard": "^7.0.0",
3233
"@capacitor/preferences": "^7.0.0",
3334
"@capacitor/splash-screen": "^7.0.0",
3435
"@capacitor/status-bar": "^7.0.0",
3536
"@emotion/react": "^11.14.0",
36-
"@mantine/core": "^7.16.3",
37-
"@mantine/hooks": "^7.16.3",
38-
"@mantine/notifications": "^7.16.3",
37+
"@mantine/core": "^7.17.1",
38+
"@mantine/hooks": "^7.17.1",
39+
"@mantine/notifications": "^7.17.1",
3940
"@noble/ed25519": "^2.2.3",
4041
"@tabler/icons-react": "^3.30.0",
4142
"@tiptap/extension-code-block": "^2.11.5",
@@ -59,23 +60,23 @@
5960
"process": "^0.11.10",
6061
"react": "^19.0.0",
6162
"react-dom": "^19.0.0",
62-
"react-markdown": "^9.0.3",
63+
"react-markdown": "^9.1.0",
6364
"rehype-highlight": "^7.0.2",
6465
"rehype-raw": "^7.0.0",
6566
"remark-gfm": "^4.0.1",
6667
"stream-browserify": "^3.0.0",
6768
"util": "^0.12.5"
6869
},
6970
"devDependencies": {
70-
"@types/react": "^19.0.9",
71-
"@types/react-dom": "^19.0.3",
71+
"@types/react": "^19.0.10",
72+
"@types/react-dom": "^19.0.4",
7273
"@vitejs/plugin-react": "^4.3.4",
7374
"concurrently": "^9.1.2",
7475
"cross-env": "^7.0.3",
75-
"electron": "^34.2.0",
76+
"electron": "^34.3.0",
7677
"electron-builder": "^25.1.8",
7778
"sharp": "^0.33.5",
78-
"typescript": "^5.7.3",
79-
"vite": "^6.1.0"
79+
"typescript": "^5.8.2",
80+
"vite": "^6.2.0"
8081
}
8182
}

0 commit comments

Comments
 (0)