-
Notifications
You must be signed in to change notification settings - Fork 781
Feature/openclaw integration #695
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
Open
Satoshi-NaAkokwa
wants to merge
4
commits into
permissionlesstech:main
Choose a base branch
from
Satoshi-NaAkokwa:feature/openclaw-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a1cbaa2
feat: Add GitHub Actions CI/CD, build automation, and documentation
2481ff5
feat: Add OpenClaw AI-human secure collaboration integration with zer…
d2abdb6
fix: Add OpenClaw component registrations to AndroidManifest
dd4be38
ci: Add GitHub Actions workflow to build OpenClaw integration APK
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| name: Build OpenClaw APK | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ feature/openclaw-integration ] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout Code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: feature/openclaw-integration | ||
|
|
||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '17' | ||
| distribution: 'temurin' | ||
|
|
||
| - name: Make gradlew executable | ||
| run: chmod +x gradlew | ||
|
|
||
| - name: Build Debug APK | ||
| run: | | ||
| ./gradlew assembleDebug --console=plain | ||
|
|
||
| - name: Upload APK Artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: openclaw-debug-apk | ||
| path: app/build/outputs/apk/debug/*.apk | ||
| retention-days: 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,185 @@ | ||
| name: Build BitChat Android APKs | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, master] | ||
| pull_request: | ||
| branches: [main, master] | ||
| workflow_dispatch: | ||
| inputs: | ||
| build_type: | ||
| description: 'Build type' | ||
| required: true | ||
| default: 'all' | ||
| type: choice | ||
| options: | ||
| - all | ||
| - debug | ||
| - release | ||
|
|
||
| env: | ||
| JAVA_VERSION: '17' | ||
| JAVA_DISTRIBUTION: 'temurin' | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build APKs | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 60 | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Set up JDK ${{ env.JAVA_VERSION }} | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: ${{ env.JAVA_VERSION }} | ||
| distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
|
|
||
| - name: Setup Android SDK | ||
| uses: android-actions/setup-android@v3 | ||
|
|
||
| - name: Grant execute permission for gradlew | ||
| run: chmod +x gradlew | ||
|
|
||
| - name: Cache Gradle packages | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.gradle/caches | ||
| ~/.gradle/wrapper | ||
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-gradle- | ||
|
|
||
| - name: Build Debug APK | ||
| if: ${{ github.event.inputs.build_type == 'all' || github.event.inputs.build_type == 'debug' || github.event.inputs.build_type == '' }} | ||
| run: ./gradlew assembleDebug --no-daemon --max-workers=2 | ||
| continue-on-error: false | ||
|
|
||
| - name: Generate Release Keystore | ||
| if: ${{ github.event.inputs.build_type == 'all' || github.event.inputs.build_type == 'release' || github.event.inputs.build_type == '' }} | ||
| env: | ||
| KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | ||
| run: | | ||
| if [ ! -f "bitchat-release.keystore" ]; then | ||
| echo "Generating keystore for release build..." | ||
| keytool -genkeypair -v \ | ||
| -keystore bitchat-release.keystore \ | ||
| -alias bitchat \ | ||
| -keyalg RSA \ | ||
| -keysize 2048 \ | ||
| -validity 10000 \ | ||
| -storepass "${KEYSTORE_PASSWORD:-BitchatRelease2025!}" \ | ||
| -keypass "${KEYSTORE_PASSWORD:-BitchatRelease2025!}" \ | ||
| -dname "CN=BitChat Android, OU=Security, O=Permissionless Tech, L=Global, ST=World, C=US" | ||
|
|
||
| # Create keystore.properties | ||
| echo "storeFile=bitchat-release.keystore" > app/keystore.properties | ||
| echo "storePassword=${KEYSTORE_PASSWORD:-BitchatRelease2025!}" >> app/keystore.properties | ||
| echo "keyAlias=bitchat" >> app/keystore.properties | ||
| echo "keyPassword=${KEYSTORE_PASSWORD:-BitchatRelease2025!}" >> app/keystore.properties | ||
| fi | ||
|
|
||
| - name: Build Release APK | ||
| if: ${{ github.event.inputs.build_type == 'all' || github.event.inputs.build_type == 'release' || github.event.inputs.build_type == '' }} | ||
| run: ./gradlew assembleRelease --no-daemon --max-workers=2 | ||
| continue-on-error: true | ||
|
|
||
| - name: List APK files | ||
| run: | | ||
| echo "=== Debug APKs ===" | ||
| find app/build/outputs/apk/debug -name "*.apk" -exec ls -lh {} \; 2>/dev/null || echo "No debug APKs found" | ||
| echo "" | ||
| echo "=== Release APKs ===" | ||
| find app/build/outputs/apk/release -name "*.apk" -exec ls -lh {} \; 2>/dev/null || echo "No release APKs found" | ||
|
|
||
| - name: Upload Debug APKs | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: debug-apks | ||
| path: app/build/outputs/apk/debug/*.apk | ||
| retention-days: 30 | ||
| if-no-files-found: warn | ||
|
|
||
| - name: Upload Release APKs | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: release-apks | ||
| path: app/build/outputs/apk/release/*.apk | ||
| retention-days: 30 | ||
| if-no-files-found: warn | ||
|
|
||
| - name: Upload Release Keystore | ||
| if: success() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: keystore | ||
| path: bitchat-release.keystore | ||
| retention-days: 90 | ||
|
Satoshi-NaAkokwa marked this conversation as resolved.
|
||
| if-no-files-found: ignore | ||
|
|
||
| - name: Create Release | ||
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
| uses: softprops/action-gh-release@v1 | ||
| with: | ||
| tag_name: v1.7.2-${{ github.run_number }} | ||
| name: BitChat Android ${{ github.run_number }} | ||
| body: | | ||
| ## BitChat Android Build | ||
|
|
||
| **Build Number:** ${{ github.run_number }} | ||
| **Commit:** ${{ github.sha }} | ||
|
|
||
| ### APKs Included: | ||
| - Debug APKs (for testing) | ||
| - Release APKs (signed, for production) | ||
|
|
||
| ### Installation: | ||
| 1. Download the appropriate APK for your device | ||
| 2. Enable "Install from unknown sources" | ||
| 3. Open the APK to install | ||
| files: | | ||
| app/build/outputs/apk/debug/*.apk | ||
| app/build/outputs/apk/release/*.apk | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| test: | ||
| name: Run Tests | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| if: always() | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up JDK ${{ env.JAVA_VERSION }} | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: ${{ env.JAVA_VERSION }} | ||
| distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
|
|
||
| - name: Setup Android SDK | ||
| uses: android-actions/setup-android@v3 | ||
|
|
||
| - name: Grant execute permission for gradlew | ||
| run: chmod +x gradlew | ||
|
|
||
| - name: Run unit tests | ||
| run: ./gradlew test --no-daemon | ||
| continue-on-error: true | ||
|
|
||
| - name: Upload test results | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: test-results | ||
| path: app/build/reports/tests/ | ||
| retention-days: 7 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.