Skip to content

Conversation

@0xbrayo
Copy link
Member

@0xbrayo 0xbrayo commented Jul 18, 2024

🚀 This description was created by Ellipsis for commit d54aed0

Summary:

Separated Fastlane and build code in CI, updated image conversion command, and added shell syntax highlighting in documentation.

Key points:

  • Added .github/workflows/build-only.yml to separate Fastlane and build code in CI.
  • Updated Makefile to use magick instead of convert for image conversion.
  • Enabled ExternalStorageConfigurationManager in .idea/misc.xml.
  • Added sh syntax highlighting to code block in README.md.

Generated with ❤️ by ellipsis.dev

@0xbrayo 0xbrayo marked this pull request as ready for review July 18, 2024 16:37
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to e0c5193 in 13 seconds

More details
  • Looked at 36 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. Makefile:213
  • Draft comment:
    Ensure that the system where this Makefile will be used has the newer version of ImageMagick installed that supports the magick command.
  • Reason this comment was not posted:
    Confidence changes required: 33%
    The change from convert to magick in the Makefile is likely an update to use ImageMagick's newer command syntax. This is generally a good practice as magick is the recommended way to invoke commands in newer versions of ImageMagick, providing better consistency and additional features. However, it's important to ensure that the system where this Makefile will be used has the newer version of ImageMagick installed that supports the magick command.

Workflow ID: wflow_RzFOkZ4lSgIM7rt8


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@0xbrayo 0xbrayo force-pushed the master branch 2 times, most recently from e055897 to d54aed0 Compare July 24, 2024 15:03
@0xbrayo
Copy link
Member Author

0xbrayo commented Jul 24, 2024

WIP. Separating the fastlane code from the build code

@0xbrayo 0xbrayo changed the title Misc: minor changes CI: separate fastlane and build code...WIP Jul 24, 2024
@0xbrayo 0xbrayo marked this pull request as draft July 24, 2024 15:53
@0xbrayo
Copy link
Member Author

0xbrayo commented Jul 24, 2024

@ellipsis-dev review

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to d54aed0 in 1.0 minute and 23.142585999999994 seconds

More details
  • Looked at 267 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 5 drafted comments based on config settings.
1. .github/workflows/build-only.yml:20
  • Draft comment:
    Consider using the same Ubuntu version for all jobs within this workflow to ensure consistency. For example, you could update all jobs to use ubuntu-20.04:
    runs-on: ubuntu-20.04
  • Reason this comment was not posted:
    Confidence of 40% on close inspection, compared to threshold of 50%.
2. .github/workflows/build-only.yml:22
  • Draft comment:
    It's recommended to use the same version of actions/checkout across all steps. Consider updating all instances to use v3 for consistency and to benefit from the latest features and fixes:
    - uses: actions/checkout@v3
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.
3. .github/workflows/build-only.yml:152
  • Draft comment:
    The action actions/cache/restore@v3 does not exist. You should use actions/cache@v3 with the appropriate restore-keys for restoring cache. Here's the corrected usage:
    - uses: actions/cache@v3
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.
4. .github/workflows/build-only.yml:210
  • Draft comment:
    The action actions/download-artifact@v3 does not exist. You should use actions/download-artifact@v2 for downloading artifacts. Here's the corrected usage:
      - uses: actions/download-artifact@v2
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.
5. .github/workflows/build-only.yml:197
  • Draft comment:
    The action actions/upload-artifact@v3 does not exist. You should use actions/upload-artifact@v2 for uploading artifacts. Here's the corrected usage:
      - uses: actions/upload-artifact@v2
  • Reason this comment was not posted:
    Confidence of 50% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_PIM8TfWyRK0FoIzz


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

# Build in release mode if on a tag/release (longer build times)
echo "RELEASE=${{ startsWith(github.ref_name, 'v') }}" >> $GITHUB_ENV

- name: Set up JDK
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider upgrading to the latest version of actions/setup-java to benefit from new features and improvements:

Suggested change
- name: Set up JDK
uses: actions/setup-java@v3

- Analyzed current aw-sync architecture and Android integration patterns
- Identified key challenges: build system, JNI bindings, storage paths
- Documented feasibility: FEASIBLE following aw-server pattern
- Created detailed implementation plan with 5 phases
- Noted that aw-sync already supports AW_SYNC_DIR env var (key enabler)

Main findings:
- aw-sync needs to be built as library for Android
- CLI dependencies (clap, ctrlc) need to be optional
- JNI bindings required following RustInterface.kt pattern
- Storage directory can be set via environment variable
- Overall complexity: Medium, no fundamental blockers
…ntation guide

- Marked phases 1-3 as complete in aw-server-rust (dev/sync-jni branch)
- Added detailed implementation guide for phases 4-5 in aw-android
- Includes complete code examples for:
  * SyncInterface.kt with JNI bindings
  * UI integration with sync buttons
  * WorkManager background sync
  * Storage permissions
- Added testing and troubleshooting sections
- Documented library rebuild and deployment steps

All Rust-side work (phases 1-3) complete and verified.
Android app integration (phases 4-5) ready to implement.
@0xbrayo 0xbrayo force-pushed the master branch 2 times, most recently from d5ed622 to 8485a28 Compare October 29, 2025 16:09
…ranch

Updated submodule to use fork with aw-sync JNI implementation.
This branch includes:
- JNI bindings for aw-sync operations
- Android build configuration
- Library preparation for Android integration
- Created SyncInterface class to interact with native aw-sync library
- Implemented JNI bindings for sync operations:
  * syncPullAll - pull from all hosts
  * syncPush - push local data
  * syncBoth - full bidirectional sync
  * getSyncDir - get sync directory path
- Async wrappers with callbacks for all sync operations
- Automatic sync directory setup in external storage
- Proper error handling and logging

Phase 4 implementation: Android app integration
- Modified SyncInterface to use Downloads/ActivityWatch/ directory
  * Static path for easy access by sync apps (Syncthing, etc.)
  * Falls back gracefully if storage not available

- Created SyncScheduler for automatic periodic syncing
  * First sync runs 1 minute after app starts
  * Subsequent syncs every 15 minutes while app is open
  * Runs syncBoth (pull + push) for full bidirectional sync
  * Logs all sync operations and results

- Integrated into MainActivity lifecycle
  * Starts scheduler in onCreate after server initialization
  * Stops scheduler in onDestroy to clean up resources

No UI needed - syncs automatically in background.
Users can access sync directory at: /sdcard/Download/ActivityWatch/

Phase 4 complete: Automatic background sync implementation
@0xbrayo 0xbrayo force-pushed the master branch 2 times, most recently from d9ef26a to b67e172 Compare October 30, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant