forked from Tencent/Hippy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vue): support ul refresh scroll (Tencent#4032)
* feat(vue-next): fix beforeLoadStyle not work * feat(vue): support_ul_refresh_scroll
- Loading branch information
Showing
1,098 changed files
with
50,175 additions
and
47,358 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
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 |
---|---|---|
|
@@ -38,12 +38,8 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
- name: Xcodegen | ||
uses: xavierLowmiller/[email protected] | ||
with: | ||
spec: framework/examples/ios-demo/project.yml | ||
version: '2.32.0' | ||
- name: Demo | ||
working-directory: framework/examples/ios-demo | ||
run: | | ||
pod install | ||
xcodebuild build -destination "generic/platform=iOS" -workspace "HippyDemo.xcworkspace" -scheme "HippyDemo" -configuration ${{matrix.type}} CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO |
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 |
---|---|---|
|
@@ -89,16 +89,10 @@ jobs: | |
with: | ||
ref: ${{ matrix.ref }} | ||
lfs: true | ||
- name: Xcodegen | ||
uses: xavierLowmiller/[email protected] | ||
with: | ||
spec: framework/examples/ios-demo/project.yml | ||
version: '2.32.0' | ||
- name: Build | ||
if: ${{ matrix.ref }} | ||
run: | | ||
pushd framework/examples/ios-demo | ||
xcodegen | ||
pod install | ||
xcodebuild build \ | ||
-destination 'generic/platform=iOS' \ | ||
|
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,134 @@ | ||
name: '[project] artifact snapshot' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
git_ref: | ||
description: 'Git Ref' | ||
type: string | ||
required: true | ||
version_name: | ||
description: 'Version name' | ||
type: string | ||
required: true | ||
registry_choice: | ||
description: 'Registry choice' | ||
type: choice | ||
required: true | ||
default: 'Both' | ||
options: | ||
- Default | ||
- Github | ||
- Both | ||
is_release_for_android: | ||
description: 'Release for Android' | ||
type: boolean | ||
default: true | ||
required: false | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
context_in_lowercase: | ||
if: github.event.inputs.is_release_for_android == 'true' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
repository_owner: ${{ steps.get_owner.outputs.lowercase }} | ||
steps: | ||
- name: Get repo owner(in lowercase) | ||
id: get_owner | ||
uses: ASzc/change-string-case-action@v2 | ||
with: | ||
string: ${{ github.repository_owner }} | ||
|
||
android_release: | ||
if: github.event.inputs.is_release_for_android == 'true' | ||
needs: context_in_lowercase | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
build_type: [Release] | ||
include: | ||
- build_type: Release | ||
artifact_id: hippy-snapshot | ||
container: | ||
image: ghcr.io/${{ needs.context_in_lowercase.outputs.repository_owner }}/android-release:latest | ||
steps: | ||
- name: Checkout (${{ github.event.inputs.git_ref }}) | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.inputs.git_ref }} | ||
lfs: true | ||
- name: ${{ matrix.build_type }} build | ||
env: | ||
SIGNING_KEY_ID: ${{ secrets.ANDROID_SIGNING_KEY_ID }} | ||
SIGNING_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }} | ||
SIGNING_SECRET_KEY: ${{ secrets.ANDROID_SIGNING_SECRET_KEY }} | ||
run: | | ||
./gradlew assemble${{ matrix.build_type }} -PVERSION_NAME=${{ github.event.inputs.version_name }} -PPUBLISH_ARTIFACT_ID=${{ matrix.artifact_id }} -PINCLUDE_ABI_X86=true -PINCLUDE_ABI_X86_64=true | ||
./gradlew signMavenAarPublication | ||
- name: Pre Archive artifacts | ||
shell: bash | ||
run: | | ||
pip3 install -U cos-python-sdk-v5 | ||
- name: Archive artifacts | ||
working-directory: ./framework/android/build | ||
shell: python3 {0} | ||
run: | | ||
from qcloud_cos import CosConfig | ||
from qcloud_cos import CosS3Client | ||
from urllib.parse import urlencode | ||
import os | ||
import tempfile | ||
import zipfile | ||
artifacts = [("outputs/aar/android-sdk.aar", "hippy/android/${{ matrix.artifact_id }}/${{ github.event.inputs.version_name }}/android-sdk.aar")] | ||
for path, dirs, files in os.walk("intermediates/merged_native_libs/%s/out/lib" % "${{ matrix.build_type }}".lower()): | ||
if files: | ||
with zipfile.ZipFile(tempfile.mkstemp()[1], "w", zipfile.ZIP_DEFLATED) as zip_file: | ||
for file in files: | ||
zip_file.write(os.path.join(path, file), file) | ||
artifacts.append((zip_file.filename, "hippy/android/${{ matrix.artifact_id }}/${{ github.event.inputs.version_name }}/symbols/%s.zip" % os.path.basename(path))) | ||
metadata = {} | ||
metadata["ci-name"] = "Github Action" | ||
metadata["ci-id"] = "${{ github.run_id }}" | ||
metadata["ci-url"] = "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
metadata["artifact-author"] = "${{ github.event.sender.login }}" | ||
metadata["git-ref"] = "${{ github.event.inputs.git_ref }}" | ||
config = CosConfig(Region="${{ secrets.COS_REGION }}", SecretId="${{ secrets.TC_SECRET_ID }}", SecretKey="${{ secrets.TC_SECRET_KEY }}") | ||
client = CosS3Client(config) | ||
for artifact in artifacts: | ||
print("Uploading %s" % artifact[0]) | ||
response = client.upload_file( | ||
Bucket="${{ secrets.COS_BUCKET_ARTIFACTS_STORE }}", | ||
Key=artifact[1], | ||
LocalFilePath=artifact[0], | ||
Metadata={"x-cos-tagging": urlencode(metadata)} | ||
) | ||
print("Archived %s" % artifact[1]) | ||
- name: Publish to Github Packages | ||
if: github.event.inputs.registry_choice == 'Both' || github.event.inputs.registry_choice == 'Github' | ||
env: | ||
SIGNING_KEY_ID: ${{ secrets.ANDROID_SIGNING_KEY_ID }} | ||
SIGNING_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }} | ||
SIGNING_SECRET_KEY: ${{ secrets.ANDROID_SIGNING_SECRET_KEY }} | ||
MAVEN_USERNAME: ${{ secrets.GITHUB_ACTOR }} | ||
MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
MAVEN_URL: https://maven.pkg.github.com/${{ github.repository }} | ||
run: | | ||
./gradlew publish -PVERSION_NAME=${{ github.event.inputs.version_name }} -PPUBLISH_ARTIFACT_ID=${{ matrix.artifact_id }} -PINCLUDE_ABI_X86=true -PINCLUDE_ABI_X86_64=true | ||
- name: Publish to OSSRH | ||
if: github.event.inputs.registry_choice == 'Both' || github.event.inputs.registry_choice == 'Default' | ||
env: | ||
SIGNING_KEY_ID: ${{ secrets.ANDROID_SIGNING_KEY_ID }} | ||
SIGNING_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }} | ||
SIGNING_SECRET_KEY: ${{ secrets.ANDROID_SIGNING_SECRET_KEY }} | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
run: | | ||
./gradlew publish -PVERSION_NAME=${{ github.event.inputs.version_name }} -PPUBLISH_ARTIFACT_ID=${{ matrix.artifact_id }} -PINCLUDE_ABI_X86=true -PINCLUDE_ABI_X86_64=true | ||
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,3 +1,3 @@ | ||
#!/bin/sh | ||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-checkout'.\n"; exit 2; } | ||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-checkout' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; } | ||
git lfs post-checkout "$@" |
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,3 +1,3 @@ | ||
#!/bin/sh | ||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-commit'.\n"; exit 2; } | ||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-commit' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; } | ||
git lfs post-commit "$@" |
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,3 +1,3 @@ | ||
#!/bin/sh | ||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-merge'.\n"; exit 2; } | ||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-merge' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; } | ||
git lfs post-merge "$@" |
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,3 +1,3 @@ | ||
#!/bin/sh | ||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/pre-push'.\n"; exit 2; } | ||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'pre-push' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; } | ||
git lfs pre-push "$@" |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>NSPrivacyAccessedAPITypes</key> | ||
<array> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryUserDefaults</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>CA92.1</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>C617.1</string> | ||
</array> | ||
</dict> | ||
</array> | ||
<key>NSPrivacyCollectedDataTypes</key> | ||
<array/> | ||
<key>NSPrivacyTrackingDomains</key> | ||
<array/> | ||
<key>NSPrivacyTracking</key> | ||
<false/> | ||
</dict> | ||
</plist> |
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
Oops, something went wrong.