diff --git a/.editorconfig b/.editorconfig index 65365be..814fa08 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,3 +13,5 @@ end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true +max_line_length = 120 +quote_type = double diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index bc95264..682b81b 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -204,7 +204,7 @@ dependencies { // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { - from configurations.compile + from configurations.implementation into 'libs' } diff --git a/example/android/build.gradle b/example/android/build.gradle index a083fc8..850fcf7 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -9,7 +9,7 @@ buildscript { } repositories { google() - jcenter() + mavenCentral() } dependencies { classpath('com.android.tools.build:gradle:4.2.1') @@ -21,6 +21,7 @@ buildscript { allprojects { repositories { + mavenCentral() mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm @@ -32,7 +33,6 @@ allprojects { } google() - jcenter() maven { url 'https://www.jitpack.io' } } } diff --git a/example/ios/Podfile b/example/ios/Podfile index 0587bf9..5e92c26 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -1,7 +1,7 @@ require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' -platform :ios, '10.0' +platform :ios, '11.0' target 'DuoDragDropExample' do config = use_native_modules! diff --git a/example/package.json b/example/package.json index fe3cae9..5e89243 100644 --- a/example/package.json +++ b/example/package.json @@ -4,20 +4,20 @@ "version": "0.0.1", "private": true, "scripts": { - "android": "react-native run-android", + "android": "react-native run-android -- --deviceId emulator-5556", "ios": "react-native run-ios", "start": "react-native start" }, "dependencies": { "react": "^17.0.2", - "react-native": "0.64.2", - "react-native-reanimated": "^2.2.1", + "react-native": "0.65.1", + "react-native-reanimated": "^2.2.2", "react-native-gesture-handler": "^1.10.3" }, "devDependencies": { - "@babel/core": "^7.12.10", + "@babel/core": "^7.15.5", "@babel/runtime": "^7.15.4", - "babel-plugin-module-resolver": "^4.0.0", - "metro-react-native-babel-preset": "^0.64.0" + "babel-plugin-module-resolver": "^4.1.0", + "metro-react-native-babel-preset": "^0.66.2" } } diff --git a/package.json b/package.json index 2176792..78936a3 100644 --- a/package.json +++ b/package.json @@ -51,23 +51,23 @@ "react-native-redash": "16.2.2" }, "devDependencies": { - "@commitlint/config-conventional": "^13.1.0", + "@commitlint/config-conventional": "^13.2.0", "@react-native-community/eslint-config": "^3.0.1", "@release-it/conventional-changelog": "^3.3.0", "@types/jest": "^27.0.2", - "@types/react": "^17.0.24", - "@types/react-native": "0.65.1", - "commitlint": "^13.1.0", + "@types/react": "^17.0.26", + "@types/react-native": "0.65.2", + "commitlint": "^13.2.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", "husky": "^7.0.2", - "jest": "^27.2.1", + "jest": "^27.2.4", "pod-install": "^0.1.27", "prettier": "^2.4.1", "react": "17.0.2", - "react-native": "0.64.2", - "react-native-builder-bob": "^0.18.1", + "react-native": "0.65.1", + "react-native-builder-bob": "^0.18.2", "release-it": "^14.11.6", "react-native-reanimated": "^2.2.2", "react-native-gesture-handler": "^1.10.3", @@ -121,13 +121,15 @@ "prettier" ], "rules": { + "no-shadow": "off", "prettier/prettier": [ "error", { "quoteProps": "consistent", - "singleQuote": true, + "singleQuote": false, "tabWidth": 2, - "trailingComma": "es5", + "printWidth": 120, + "trailingComma": "all", "useTabs": false } ] @@ -139,10 +141,11 @@ ], "prettier": { "quoteProps": "consistent", - "singleQuote": true, + "singleQuote": false, "tabWidth": 2, - "trailingComma": "es5", - "useTabs": false + "trailingComma": "all", + "useTabs": false, + "printWidth": 120 }, "react-native-builder-bob": { "source": "src",