Skip to content

Commit

Permalink
feat: test app (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: codepushr <[email protected]>
  • Loading branch information
mhochsto and 0x7061 authored Sep 16, 2024
1 parent f65b85a commit 76fd413
Show file tree
Hide file tree
Showing 173 changed files with 22,338 additions and 3,068 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.java]
ij_java_imports_layout = $*, |, javax.**, java.**, |, *

[*.gradle]
indent_size = 4

[{*.json,*.jschema}]
indent_size = 4

[*.md]
max_line_length = off
trim_trailing_whitespace = false
7 changes: 5 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
build
dist
node_modules
test-app/
dist/
ios/
android/
51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"rules": {
"prettier/prettier": [
"error",
{
"trailingComma": "all",
"printWidth": 120,
"tabWidth": 2,
"useTabs": false
}
]
},
"overrides": [
{
"files": [
"*.js",
"*.mjs"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
}
},
{
"files": [
"*.cjs"
],
"env": {
"node": true
},
"parser": "@babel/eslint-parser"
},
{
"files": [
"src/**/*.ts"
],
"extends": [
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
}
]
}
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: 'monthly'
28 changes: 28 additions & 0 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Cache
on:
pull_request:
types:
- closed
jobs:
clear:
runs-on: ubuntu-latest
steps:
- name: Execute
run: |
gh extension install actions/gh-actions-cache
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge
43 changes: 43 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Lint
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
permissions:
id-token: write
attestations: write
jobs:
All:
runs-on: macos-latest
permissions:
id-token: write
attestations: write
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install swiftlint
run: brew install swiftlint
- name: Cache node_modules
id: node-modules
uses: actions/cache@v4
with:
path: |
node_modules
key: node-modules
- run: npm i
- run: cd test-app && npm i
- run: npm run lint
- run: npm pack
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: package
path: '${{ github.workspace }}/*.tgz'
- name: Attest
uses: actions/attest-build-provenance@v1
with:
subject-path: '${{ github.workspace }}/*.tgz'
21 changes: 21 additions & 0 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Semantic PR Title'

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened

permissions:
pull-requests: read

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
plugins:
- prettier-plugin-java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
s.name = 'EvvaSfwCapacitorAbrevva'
s.name = 'EvvaSfwAbrevvaCapacitor'
s.version = package['version']
s.summary = package['description']
s.description = <<-DESC
Expand All @@ -17,7 +17,7 @@ TODO: Add long description of the pod here.

s.platform = :ios
s.ios.deployment_target = '15.0'
s.swift_version = '5.0'
s.swift_version = '5.7'
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'

s.dependency 'Capacitor'
Expand Down
5 changes: 5 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"@babel/preset-env"
]
}
115 changes: 0 additions & 115 deletions ios/.swiftformat

This file was deleted.

13 changes: 0 additions & 13 deletions ios/.swiftlint.yml

This file was deleted.

Loading

0 comments on commit 76fd413

Please sign in to comment.