Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Dependabot #6

Open
wants to merge 81 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
8448fd2
build: update /example yarn.lock
iBotPeaches Nov 29, 2021
87cbfe2
Bump async from 2.6.3 to 2.6.4 in /example (#7)
dependabot[bot] May 10, 2022
94a4423
replaced deprecated 'provided' dependency with 'compileOnly' (#8)
Aug 3, 2022
b98c02e
build: remove jcenter from /example
iBotPeaches Oct 31, 2022
869b2c7
docs: adjust readme for takeover
iBotPeaches Oct 31, 2022
ec96598
build: add packages referenced
iBotPeaches Oct 31, 2022
fa2b2f1
feat: upgrade to latest rn
iBotPeaches Oct 31, 2022
7939eb6
feat: upgrade example react-native version to latest (#10)
ian-wd Nov 1, 2022
e309880
refactor: typescript rewrite
ian-wd Nov 2, 2022
7f2e7b7
tests: add tests
ian-wd Nov 3, 2022
697524c
ci: init test and lint
ian-wd Nov 3, 2022
1229a9a
feat: move example camera plugin as a dev dependency
ian-wd Nov 3, 2022
2c888e7
refactor: uuid filename
ian-wd Nov 4, 2022
f0cb1eb
ci: run on latest ubuntu
ian-wd Nov 4, 2022
a3a6e86
feat: autolink example modules
ian-wd Nov 4, 2022
0f659e0
fix: remove duplicate dev and non-dev type packages (#13)
iBotPeaches Nov 4, 2022
d7fffb4
build: version 1.0.1 tagged (#12)
iBotPeaches Nov 4, 2022
c9f0a6a
Bump decode-uri-component from 0.2.0 to 0.2.2 in /example (#14)
dependabot[bot] Dec 13, 2022
e7ab565
Bump decode-uri-component from 0.2.0 to 0.2.2 (#15)
dependabot[bot] Dec 13, 2022
d3cdc50
Feat: Publish to NPM (#16)
iBotPeaches Dec 13, 2022
ac22e35
Bump json5 from 2.2.1 to 2.2.3 (#17)
dependabot[bot] Jan 9, 2023
16abd57
Bump activesupport from 6.1.7 to 6.1.7.1 in /example (#18)
dependabot[bot] Jan 22, 2023
8b2cf41
feat: support publish to GPR (#19)
iBotPeaches Mar 3, 2023
019970a
Bump @sideway/formula from 3.0.0 to 3.0.1 in /example (#21)
dependabot[bot] Mar 3, 2023
1462b58
Bump @sideway/formula from 3.0.0 to 3.0.1 (#20)
dependabot[bot] Mar 3, 2023
b0723b2
build: version 1.0.3 tagged (#22)
iBotPeaches Mar 3, 2023
07c2ec3
Bump activesupport from 6.1.7.1 to 6.1.7.3 in /example (#23)
dependabot[bot] Mar 17, 2023
7ba59a9
feat: expose "getBase64()" method (#25)
ian-wd Jun 15, 2023
2648784
build: version 1.0.4 tagged (#26)
iBotPeaches Jul 5, 2023
463d0d9
Bump tough-cookie from 4.1.2 to 4.1.3 (#28)
dependabot[bot] Jul 9, 2023
4565f38
Bump tough-cookie from 4.1.2 to 4.1.3 in /example (#27)
dependabot[bot] Jul 10, 2023
893a7c2
Bump semver from 5.7.1 to 5.7.2 (#29)
dependabot[bot] Jul 12, 2023
de7e5a4
Bump semver from 5.7.1 to 5.7.2 in /example (#30)
dependabot[bot] Jul 12, 2023
ae910ec
Bump word-wrap from 1.2.3 to 1.2.4 in /example (#31)
dependabot[bot] Jul 19, 2023
97ce385
Bump word-wrap from 1.2.3 to 1.2.4 (#32)
dependabot[bot] Jul 19, 2023
90380c1
docs: swap videos + fix typos (#35)
iBotPeaches Jul 24, 2023
f3a2258
Upgrade to RN 70.12 (#34)
iBotPeaches Jul 24, 2023
843b96a
Android: Revamp build.gradle (#33)
iBotPeaches Jul 24, 2023
f86060e
fix: use proper getBase64 on example 2 (#36)
iBotPeaches Jul 25, 2023
bd7262f
build: update lockfile to match RN 70.12 upgrade (#37)
iBotPeaches Jul 25, 2023
5279b26
RN 0.72.x Upgrade (#38)
ian-wd Jul 31, 2023
a2d7a5e
TCS-1239 replace deprecated lifecycle hooks (#39)
jyann Aug 16, 2023
8ee9df3
fix: don't track flipper for release builds (#40)
iBotPeaches Aug 16, 2023
e98572b
Lint Android (#41)
iBotPeaches Aug 16, 2023
a5a58f2
fix: support RN 72.[0-3] due to delivering param as String (#42)
iBotPeaches Aug 16, 2023
9d041b8
fix: react-native.config.js, not react-native-config.js (#43)
iBotPeaches Aug 16, 2023
e39f546
build: add gitignore for android gradlew (#44)
iBotPeaches Aug 16, 2023
fa610b0
build(deps): bump activesupport from 6.1.7.3 to 7.0.7.2 in /example (…
dependabot[bot] Aug 24, 2023
1e2266b
build(deps): bump json5 from 2.2.1 to 2.2.3 in /example (#46)
dependabot[bot] Aug 24, 2023
9ba78b1
build(deps): bump @babel/traverse from 7.20.0 to 7.23.2 in /example (…
dependabot[bot] Oct 18, 2023
1edf738
build(deps): bump @babel/traverse from 7.20.1 to 7.23.2 (#48)
dependabot[bot] Oct 18, 2023
80b38c6
build(deps): bump react-devtools-core from 4.28.0 to 4.28.4 (#50)
dependabot[bot] Oct 23, 2023
7147d87
build(deps): bump react-devtools-core from 4.28.0 to 4.28.4 in /examp…
dependabot[bot] Oct 23, 2023
b004771
fix: remove duplicate dependencies (dev) (#52)
iBotPeaches Dec 7, 2023
3cca3ed
build: bump react-native to v0.73.x (#53)
ian-wd Dec 20, 2023
f1cf1cd
Swap Yarn for NPM (#54)
iBotPeaches Dec 20, 2023
18e692d
TCS-1284 RN 0.73 upgrade (#55)
jyann Jan 5, 2024
7f4f839
build: version 1.1.0 tagged (#56)
jyann Jan 5, 2024
0b3109b
TCS-1284 build: use node v18 for ci/cd (#57)
jyann Jan 8, 2024
a00a8b2
build: version 1.1.1 tagged (#58)
jyann Jan 8, 2024
f533f35
build: add back prepare script (#59)
ian-wd Feb 1, 2024
c8ebb50
build: version 1.1.2 tagged (#60)
iBotPeaches Feb 4, 2024
1e3aa67
build(deps-dev): bump ip from 1.1.8 to 1.1.9 in /example (#62)
dependabot[bot] Feb 22, 2024
38ecee7
build(deps-dev): bump ip from 1.1.8 to 1.1.9 (#61)
dependabot[bot] Feb 22, 2024
5150eab
build(deps): bump rexml from 3.2.6 to 3.2.8 in /example (#63)
dependabot[bot] May 16, 2024
fffb9a0
build(deps-dev): bump ws from 6.2.2 to 6.2.3 (#65)
dependabot[bot] Jun 18, 2024
9e6cfb8
build(deps-dev): bump ws from 6.2.2 to 6.2.3 in /example (#66)
dependabot[bot] Jun 18, 2024
0d71b72
build(deps-dev): bump braces from 3.0.2 to 3.0.3 (#67)
dependabot[bot] Jun 18, 2024
ce81284
build(deps-dev): bump fast-xml-parser from 4.2.6 to 4.4.1 in /example…
dependabot[bot] Jul 29, 2024
d640a44
build(deps-dev): bump braces from 3.0.2 to 3.0.3 in /example (#71)
dependabot[bot] Jul 29, 2024
91479d0
RN 0.74.x (#69)
ian-wd Jul 30, 2024
807c670
build: version 1.2.0 tagged (#72)
iBotPeaches Aug 2, 2024
0345c8f
FIX: using high resolution images on iOS as localSourceImage yields b…
ian-wd Aug 12, 2024
4008b05
build(deps): bump rexml from 3.2.8 to 3.3.6 in /example (#74)
dependabot[bot] Aug 22, 2024
4341baa
build(deps-dev): bump micromatch from 4.0.5 to 4.0.8 in /example (#75)
dependabot[bot] Sep 2, 2024
a4fd67c
build: version 1.2.1 tagged (#76)
iBotPeaches Sep 16, 2024
c36cdf1
build(deps): bump send and serve-static (#77)
dependabot[bot] Sep 16, 2024
993fee1
build(deps-dev): bump serve-static from 1.15.0 to 1.16.2 in /example …
dependabot[bot] Sep 16, 2024
4b11ca0
feat: support content URI when loading background image (#79)
ian-wd Oct 9, 2024
3247918
build: version 1.3.0 tagged (#80)
iBotPeaches Oct 9, 2024
49229e0
Added dependabot
nemanjar7 Sep 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/**
example/**
lib/**
19 changes: 19 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
root: true,
extends: ['@react-native-community', 'prettier'],
rules: {
'prettier/prettier': [
'error',
{
quoteProps: 'consistent',
tabWidth: 2,
useTabs: false,
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
singleQuote: true,
trailingComma: 'all',
},
],
},
};
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
time: "06:00"
timezone: "America/New_York"
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish to NPM/GPR
on:
release:
types: [published]

jobs:
publish:
environment: deploy
runs-on: ubuntu-latest

name: Publish
steps:
- uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

- name: NPM Install
run: npm ci

- name: Publish (NPM)
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: actions/setup-node@v3
with:
registry-url: 'https://npm.pkg.github.com'

- name: Publish (GPR)
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: RNSketchCanvas CI
on: [push]

jobs:
build:
runs-on: ubuntu-latest
name: Lint and Tests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'

- name: NPM Install
run: npm ci

- name: Linting
run: npm run lint

- name: Typing
run: npm run typescript

- name: Testing
run: npm run test --coverage

- name: Prepare Build
run: npm run build
37 changes: 32 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
#
.DS_Store

# XDE
.expo/

# VSCode
.vscode/
jsconfig.json

# Xcode
#
build/
Expand All @@ -20,26 +27,46 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
example/ios/.xcode.env.local
project.xcworkspace

# Android/IntelliJ
# Android/IJ
#
build/
.idea
.classpath
.cxx
.gradle
.idea
.project
.settings
local.properties
*.iml
android.iml

# Cocoapods
#
example/ios/Pods

# Ruby
example/vendor/

# node.js
#
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log
coverage/

# BUCK
buck-out/
\.buckd/
android/app/libs
*.keystore
android/keystores/debug.keystore

# Turborepo
.turbo/

# generated by bob
lib/

# fastlane
#
Expand Down
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
singleQuote: true,
trailingComma: 'all',
};
226 changes: 110 additions & 116 deletions README.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion RNSketchCanvas.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Pod::Spec.new do |s|
s.name = 'RNSketchCanvas'
s.version = package['version']
s.summary = package['description']
s.homepage = 'https://github.com/creambyemute/react-native-sketch-canvas'
s.homepage = 'https://github.com/sourcetoad/react-native-sketch-canvas'
s.license = package['license']
s.authors = package['author']
s.source = { :git => package['repository']['url'] }
s.resource_bundles = { 'RNSketchCanvas_PrivacyInfo' => 'ios/RNSketchCanvas/PrivacyInfo.xcprivacy' }
s.platform = :ios, '8.0'
s.source_files = 'ios/**/*.{h,m}'
s.dependency 'React'
Expand Down
5 changes: 5 additions & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Running Android in isolation in IDE causes these to be generated.
# They wouldn't be generated in usage of the library in React Native.
gradlew
gradlew.bat
gradle/wrapper/*
31 changes: 14 additions & 17 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
apply plugin: 'com.android.library'

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
def getExtOrIntegerDefault(name) {
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["RNSketchCanvas_" + name]).toInteger()
}

android {
compileSdkVersion safeExtGet('compileSdkVersion', 27)
buildToolsVersion safeExtGet('buildToolsVersion', '27.0.3')
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")

defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', 16)
targetSdkVersion safeExtGet('targetSdkVersion', 27)
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
splits {
abi {
reset()
enable safeExtGet('enableSeparateBuildPerCPUArchitecture', false)
universalApk safeExtGet('universalApk', false) // If true, also generate a universal APK
include "armeabi-v7a", "x86"
}
lintOptions {
abortOnError false
}
}

repositories {
mavenCentral()
google()
}

dependencies {
provided "com.facebook.react:react-native:+"
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
}
3 changes: 3 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RNSketchCanvas_minSdkVersion=16
RNSketchCanvas_targetSdkVersion=27
RNSketchCanvas_compileSdkVersion=27
Loading