-
-
Notifications
You must be signed in to change notification settings - Fork 31
CI: separate fastlane and build code...WIP #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
36lines of code in3files - Skipped
0files when reviewing. - Skipped posting
1drafted 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 themagickcommand. - Reason this comment was not posted:
Confidence changes required:33%
The change fromconverttomagickin the Makefile is likely an update to use ImageMagick's newer command syntax. This is generally a good practice asmagickis 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 themagickcommand.
Workflow ID: wflow_RzFOkZ4lSgIM7rt8
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
e055897 to
d54aed0
Compare
|
WIP. Separating the fastlane code from the build code |
|
@ellipsis-dev review |
There was a problem hiding this 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
267lines of code in3files - Skipped
0files when reviewing. - Skipped posting
5drafted 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 useubuntu-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 ofactions/checkoutacross all steps. Consider updating all instances to usev3for 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 actionactions/cache/restore@v3does not exist. You should useactions/cache@v3with the appropriaterestore-keysfor 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 actionactions/download-artifact@v3does not exist. You should useactions/download-artifact@v2for 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 actionactions/upload-artifact@v3does not exist. You should useactions/upload-artifact@v2for 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 |
There was a problem hiding this comment.
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:
| - name: Set up JDK | |
| uses: actions/setup-java@v3 |
10fd8e7 to
854877e
Compare
- 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.
d5ed622 to
8485a28
Compare
…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
d9ef26a to
b67e172
Compare
Summary:
Separated Fastlane and build code in CI, updated image conversion command, and added shell syntax highlighting in documentation.
Key points:
.github/workflows/build-only.ymlto separate Fastlane and build code in CI.Makefileto usemagickinstead ofconvertfor image conversion.ExternalStorageConfigurationManagerin.idea/misc.xml.shsyntax highlighting to code block inREADME.md.Generated with ❤️ by ellipsis.dev