Skip to content

Commit

Permalink
Add Polaris.yml (#622)
Browse files Browse the repository at this point in the history
* Add android and js polaris.yml

* Updating package version

* Fix android polaris.yml

* Combine react-native polaris files

* Add iOS portion of config file

* Updating package version

* Add iOS script for polaris

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Luco <[email protected]>
  • Loading branch information
3 people authored Nov 9, 2022
1 parent 0574905 commit 96a5320
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-pdftron",
"title": "React Native Pdftron",
"version": "3.0.2-beta.141",
"version": "3.0.2-beta.142",
"description": "React Native Pdftron",
"main": "./lib/index.js",
"typings": "index.ts",
Expand Down
32 changes: 32 additions & 0 deletions polaris.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: "1"
project:
name: ${scm.git.repo}
branch: ${scm.git.branch}
revision:
name: ${scm.git.commit}
date: ${scm.git.commit.date}
capture:
fileSystem:
java:
files:
- directory: ./android
javascript:
files:
- directory: ./lib/src
- excludeRegex: node_modules|__test__
typescript:
files:
- directory: ./src
- excludeRegex: node_modules|__test__
build:
buildCommands:
- shell: [bash, -e, scripts/ios/run_polaris.sh]
coverity:
skipFiles:
- "example/ios/Pods"
analyze:
mode: central
install:
coverity:
version: default
serverUrl: https://pdftron.polaris.synopsys.com/
30 changes: 30 additions & 0 deletions scripts/ios/run_polaris.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

readonly project_dir="example/"

cd "${project_dir}"

# Install the Flutter package dependencies, which contain Dart and native iOS code.

echo "Installing node packages..."

yarn install

# Install the CocoaPods package dependencies.

cd 'ios/'

echo "Installing CocoaPods packages..."

pod install

# Build the iOS workspace.

echo "Building iOS workspace..."

xcodebuild \
-workspace 'example.xcworkspace' \
-scheme 'example' \
-configuration 'Debug' \
-destination 'generic/platform=iOS Simulator' \
clean build

0 comments on commit 96a5320

Please sign in to comment.