-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init optimization * add json element support * add JSParamters and JSResult * segregate conversions * reorg files * remove js executor * safe v8 + unit tests fix * update export method to be more readable * update settings.gradle * Squashed 'quickjs/quickjs/' content from commit 3bb2ca3 git-subtree-dir: quickjs/quickjs git-subtree-split: 3bb2ca360e994c93e9bf273a685c061d5e0b58f4 * init setup of jni * draft conversion and memory management * draft array, object, and function * finalize Conversions.kt and JSContext.kt * draft engine * draft jni * bug fix * use delegation on jsobject and jsarray * add support for json element * json array bug fix * add test for json array * bug fix * make JSConvertible also Releasable * memory manager optimization * add delegation for JSNull and JSUndefined * implement JSFunction * remove unnecessary code * export function * implement extend * add console * fix crash when atom hash returns 0 * clean up * draft exporting class * bug fix * bug fix * bug fix for JSClass function with parameters * implement exporting property, replace java reflection with kotlin reflection * bug fix * bug fix for prototype instance method * clean up JSFunctionBody * memory leak fix * revert changes made to quickjs.c * add launch * clean up * make exception handler easier to use * add completion closure to loadBundle * fix jsCallback always return undefine instead of null for actual null value * update env * clean up * Downgrade Gradle to get ./gradlew publishToSonatype to work * Bump version of io.github.gradle-nexus.publish-plugin to 2.0.0 * Adding github workflows for build, release, and snapshot. * Uncommit the MainActivity. * Remove unused old imports. --------- Co-authored-by: Wenxi Zeng <wenxi.zeng@segment.com> Co-authored-by: Wenxi Zeng <wzeng@twilio.com>
- Loading branch information
1 parent
24c9330
commit 1d94da9
Showing
106 changed files
with
103,832 additions
and
1,469 deletions.
There are no files selected for viewing
This file contains 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,39 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
cancel_previous: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: styfle/cancel-workflow-action@0.9.1 | ||
with: | ||
workflow_id: ${{ github.event.workflow.id }} | ||
|
||
build: | ||
|
||
needs: cancel_previous | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: cache gradle dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Run Tests | ||
run: ./gradlew check |
This file contains 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,55 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*.*.*' | ||
|
||
jobs: | ||
release: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
environment: deployment | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get tag | ||
id: vars | ||
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} | ||
- name: Verify tag | ||
run: | | ||
VERSION=$(grep VERSION_NAME gradle.properties | awk -F= '{ print $2 }' | sed "s/-SNAPSHOT//") | ||
if [ "${{ steps.vars.outputs.tag }}" != "$VERSION" ]; then { | ||
echo "Tag ${{ steps.vars.outputs.tag }} does not match the package version ($VERSION)" | ||
exit 1 | ||
} fi | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: cache gradle dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-core-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-core- | ||
- name: Publush release to sonatype | ||
run: ./gradlew publishToSonatype -Prelease closeAndReleaseSonatypeStagingRepository | ||
env: | ||
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | ||
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.NEXUS_USERNAME }} | ||
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.NEXUS_PASSWORD }} | ||
SIGNING_PRIVATE_KEY_BASE64: ${{ secrets.SIGNING_PRIVATE_KEY_BASE64 }} | ||
|
||
- name: create release | ||
run: | | ||
curl \ | ||
-X POST \ | ||
-H "Authorization: token $GITHUB_TOKEN" \ | ||
https://api.github.com/repos/${{github.repository}}/releases \ | ||
-d '{"tag_name": "${{ env.RELEASE_VERSION }}", "name": "${{ env.RELEASE_VERSION }}", "body": "Release of version ${{ env.RELEASE_VERSION }}", "draft": false, "prerelease": false, "generate_release_notes": true}' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE_VERSION: ${{ steps.vars.outputs.tag }} |
This file contains 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,31 @@ | ||
name: Snapshot | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
snapshot: | ||
runs-on: ubuntu-latest | ||
environment: deployment | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: cache gradle dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-core-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-core- | ||
- name: Publush snapshot to sonatype | ||
run: ./gradlew publishToSonatype | ||
env: | ||
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | ||
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.NEXUS_USERNAME }} | ||
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.NEXUS_PASSWORD }} | ||
SIGNING_PRIVATE_KEY_BASE64: ${{ secrets.SIGNING_PRIVATE_KEY_BASE64 }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed Apr 06 14:54:34 PDT 2022 | ||
#Thu Apr 11 17:16:54 EDT 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.