Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge to sync between internal repo and public repo
Browse files Browse the repository at this point in the history
* right/main:
  [chore] Update registry link and docs (#12)
  [chore] Add publish workflow and fix typos (#11)
  Add android support (#10)
  add waas-sdk-react-native
  • Loading branch information
yuga-cb committed Mar 21, 2023
2 parents 61add17 + ba854cc commit ec341bd
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
35 changes: 35 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# EXAMPLE USAGE:
#
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
#
# pre-push:
# commands:
# packages-audit:
# tags: frontend security
# run: yarn audit
# gems-audit:
# tags: backend security
# run: bundle audit
#
# pre-commit:
# parallel: true
# commands:
# eslint:
# glob: "*.{js,ts,jsx,tsx}"
# run: yarn eslint {staged_files}
# rubocop:
# tags: backend style
# glob: "*.rb"
# exclude: "application.rb|routes.rb"
# run: bundle exec rubocop --force-exclusion {all_files}
# govet:
# tags: backend style
# files: git ls-files -m
# glob: "*.go"
# run: go vet {files}
# scripts:
# "hello.js":
# runner: node
# "any.go":
# runner: go run
12 changes: 12 additions & 0 deletions scripts/compress_xcframework.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

# Fail immediately on any substep failing.
set -euo pipefail

ROOT_DIR=$(pwd)
XC_DIR=$ROOT_DIR/ios/WaasSdkGo.xcframework

# Compress files that exceed Github Enterprise limit of 50MB.
cd $XC_DIR/ios-arm64/ && tar cf - WaasSdkGo.framework | gzip -9 - > WaasSdkGo.framework.tar.gz
cd $XC_DIR/ios-arm64-simulator && tar cf - WaasSdkGo.framework | gzip -9 - > WaasSdkGo.framework.tar.gz
cd $XC_DIR/ios-x86_64-simulator && tar cf - WaasSdkGo.framework | gzip -9 - > WaasSdkGo.framework.tar.gz
11 changes: 11 additions & 0 deletions scripts/uncompress_xcframework.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# Fail immediately on any substep failing.
set -euo pipefail

ROOT_DIR=$(pwd)
XC_DIR=$ROOT_DIR/ios/WaasSdkGo.xcframework

tar -xvzf $XC_DIR/ios-arm64/WaasSdkGo.framework.tar.gz -C $XC_DIR/ios-arm64/
tar -xvzf $XC_DIR/ios-arm64-simulator/WaasSdkGo.framework.tar.gz -C $XC_DIR/ios-arm64-simulator/
tar -xvzf $XC_DIR/ios-x86_64-simulator/WaasSdkGo.framework.tar.gz -C $XC_DIR/ios-x86_64-simulator

0 comments on commit ec341bd

Please sign in to comment.