Skip to content

Commit

Permalink
use rhino maintained by ourselves
Browse files Browse the repository at this point in the history
  • Loading branch information
5ec1cff committed Sep 9, 2023
1 parent bed34be commit 222f709
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
submodules: "recursive"
fetch-depth: 0
path: StethoX

- name: Write key
if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/master' ) || github.ref_type == 'tag' }}
Expand All @@ -35,6 +36,12 @@ jobs:
echo ${{ secrets.KEY_STORE }} | base64 --decode > key.jks
fi
- name: Checkout rhino
uses: actions/checkout@v3
with:
repository: 5ec1cff/rhino
path: rhino

- name: Checkout stetho
uses: actions/checkout@v3
with:
Expand All @@ -52,7 +59,16 @@ jobs:
with:
gradle-home-cache-cleanup: true

- name: Build dependencies
- name: Build rhino
working-directory: rhino
run: |
echo 'org.gradle.caching=true' >> ~/.gradle/gradle.properties
echo 'org.gradle.parallel=true' >> ~/.gradle/gradle.properties
echo 'org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:+UseParallelGC' >> ~/.gradle/gradle.properties
echo 'android.native.buildOutput=verbose' >> ~/.gradle/gradle.properties
./gradlew publishToMavenLocal
- name: Build stetho
working-directory: stetho
run: |
echo 'org.gradle.caching=true' >> ~/.gradle/gradle.properties
Expand All @@ -62,17 +78,18 @@ jobs:
./gradlew publishToMavenLocal
- name: Build with Gradle
working-directory: StethoX
run: |
./gradlew assemble
- name: Upload release
uses: actions/upload-artifact@v3
with:
name: "StethoX-release-ci.apk"
path: "./app/build/outputs/apk/release/app-release.apk"
path: "./StethoX/app/build/outputs/apk/release/app-release.apk"

- name: Upload debug
uses: actions/upload-artifact@v3
with:
name: "StethoX-debug-ci.apk"
path: "./app/build/outputs/apk/debug/app-debug.apk"
path: "./StethoX/app/build/outputs/apk/debug/app-debug.apk"
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ dependencies {
compileOnly(project(":hidden-api"))
implementation("com.github.5ec1cff.stetho:stetho:1.0-alpha-1")
implementation("com.github.5ec1cff.stetho:stetho-js-rhino:1.0-alpha-1")
implementation("org.mozilla:rhino:1.7.13")
implementation("org.mozilla:rhino:1.7.15-SNAPSHOT")
}

0 comments on commit 222f709

Please sign in to comment.