Skip to content

Commit

Permalink
feat!: File Sync (logseq#5355)
Browse files Browse the repository at this point in the history
- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks

Co-authored-by: llcc <[email protected]>
Co-authored-by: rcmerci <[email protected]>
Co-authored-by: Tienson Qin <[email protected]>
Co-authored-by: Andelf <[email protected]>
Co-authored-by: Gabriel Horner <[email protected]>
  • Loading branch information
6 people authored Aug 31, 2022
1 parent 252fec4 commit 01d879c
Show file tree
Hide file tree
Showing 111 changed files with 6,530 additions and 1,973 deletions.
3 changes: 3 additions & 0 deletions .carve/ignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,6 @@ frontend.test.node-test-runner/main
frontend.test.frontend-node-test-runner/main
;; Test runner for nbb
logseq.graph-parser.nbb-test-runner/run-tests
;; For debugging
frontend.fs.sync/debug-print-sync-events-loop
frontend.fs.sync/stop-debug-print-sync-events-loop
9 changes: 9 additions & 0 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
type: boolean
required: true
default: false
enable-file-sync-production:
description: 'File sync production mode'
type: boolean
required: true
default: false
workflow_call:
inputs:
build-target:
Expand All @@ -32,6 +37,9 @@ on:
enable-file-sync:
description: 'Build with file sync support'
type: boolean
enable-file-sync-production:
description: 'File sync production mode'
type: boolean
secrets:
ANDROID_KEYSTORE:
required: true
Expand Down Expand Up @@ -104,6 +112,7 @@ jobs:
- name: Set Build Environment Variables
run: |
echo "ENABLE_FILE_SYNC=${{ inputs.enable-file-sync == 'true' || github.event.inputs.enable-file-sync == 'true' }}" >> $GITHUB_ENV
echo "ENABLE_FILE_SYNC_PRODUCTION=${{ inputs.enable-file-sync-production == 'true' || github.event.inputs.enable-file-sync-production == 'true' }}" >> $GITHUB_ENV
- name: Compile CLJS - android variant, use es6 instead of es-next
run: yarn install && yarn release-android-app
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build-desktop-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ on:
type: boolean
required: true
default: false
enable-file-sync-production:
description: 'File sync production mode'
type: boolean
required: true
default: false
enable-plugins:
description: 'Build with plugin system support'
type: boolean
Expand Down Expand Up @@ -125,6 +130,7 @@ jobs:
run: |
echo "ENABLE_FILE_SYNC=${{ github.event.inputs.enable-file-sync }}" >> $GITHUB_ENV
echo "ENABLE_PLUGINS=${{ github.event.inputs.enable-plugins }}" >> $GITHUB_ENV
echo "ENABLE_FILE_SYNC_PRODUCTION=${{ github.event.inputs.enable-file-sync-production }}" >> $GITHUB_ENV
- name: Compile CLJS
run: yarn install && gulp build && yarn cljs:release-electron
Expand Down Expand Up @@ -427,6 +433,7 @@ jobs:
with:
build-target: "${{ github.event.inputs.build-target }}"
enable-file-sync: "${{ github.event.inputs.enable-file-sync == 'true' }}"
enable-file-sync-production: "${{ github.event.inputs.enable-file-sync-production == 'true' }}"
secrets:
ANDROID_KEYSTORE: "${{ secrets.ANDROID_KEYSTORE }}"
ANDROID_KEYSTORE_PASSWORD: "${{ secrets.ANDROID_KEYSTORE_PASSWORD }}"
Expand Down
7 changes: 7 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
<data android:mimeType="video/*" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="logseq" android:host="auth-callback" />
</intent-filter>

</activity>

<provider
Expand Down
Loading

0 comments on commit 01d879c

Please sign in to comment.