diff --git a/CHANGELOG.md b/CHANGELOG.md index 200a5bf..3804f43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog All notable changes to this project will be documented in this file. +## [1.4.0] - 2019-4-3 +### Changed +- Fixed reported security issues from npm +- Added a dependency on appcompat-v7 in android to ensure required UI libraries are available +### Added +- Added a podspec file + ## [1.3.0] - 2019-1-24 ### Changed - Removed src directory and moved index.js to the root @@ -57,3 +64,4 @@ All notable changes to this project will be documented in this file. [1.1.3]: https://github.com/SelfLender/react-native-biometrics/compare/1.1.2...1.1.3 [1.2.0]: https://github.com/SelfLender/react-native-biometrics/compare/1.1.3...1.2.0 [1.3.0]: https://github.com/SelfLender/react-native-biometrics/compare/1.2.0...1.3.0 +[1.4.0]: https://github.com/SelfLender/react-native-biometrics/compare/1.3.0...1.4.0 diff --git a/android/build.gradle b/android/build.gradle index 01017f3..a6857d2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,6 +6,9 @@ def DEFAULT_COMPILE_SDK_VERSION = 28 def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3" def DEFAULT_MIN_SDK_VERSION = 16 def DEFAULT_TARGET_SDK_VERSION = 28 +def DEFAULT_SUPPORT_LIB_VERSION = "28.0.0" + +def SUPPORT_LIB_VERSION = rootProject.hasProperty('supportLibVersion') ? rootProject.supportLibVersion : DEFAULT_SUPPORT_LIB_VERSION buildscript { repositories { @@ -25,8 +28,6 @@ android { defaultConfig { minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.minSdkVersion : DEFAULT_MIN_SDK_VERSION targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION - versionCode 1 - versionName "1.0" } lintOptions { abortOnError false @@ -39,5 +40,6 @@ repositories { } dependencies { + implementation "com.android.support:appcompat-v7:${SUPPORT_LIB_VERSION}" implementation 'com.facebook.react:react-native:+' } diff --git a/package-lock.json b/package-lock.json index a25bfd3..faddb11 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-native-biometrics", - "version": "1.3.0", + "version": "1.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -93,9 +93,9 @@ } }, "babel-core": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.0.tgz", - "integrity": "sha1-rzL3izGm/O8RnIew/Y2XU/A6C7g=", + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", "dev": true, "requires": { "babel-code-frame": "^6.26.0", @@ -108,15 +108,15 @@ "babel-traverse": "^6.26.0", "babel-types": "^6.26.0", "babylon": "^6.18.0", - "convert-source-map": "^1.5.0", - "debug": "^2.6.8", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", "json5": "^0.5.1", "lodash": "^4.17.4", "minimatch": "^3.0.4", "path-is-absolute": "^1.0.1", - "private": "^0.1.7", + "private": "^0.1.8", "slash": "^1.0.0", - "source-map": "^0.5.6" + "source-map": "^0.5.7" } }, "babel-generator": { @@ -1642,9 +1642,9 @@ } }, "lodash": { - "version": "4.17.5", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", - "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, "loose-envify": { diff --git a/package.json b/package.json index 17cb94c..d91ccce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "react-native-biometrics", - "version": "1.3.0", + "version": "1.4.0", + "summary": "A React Native library for biometrics", "description": "React Native biometric functionality for signing and encryption", "main": "lib/index.js", "types": "index.d.ts", @@ -27,7 +28,10 @@ "url": "git+https://github.com/SelfLender/react-native-biometrics.git" }, "private": false, - "author": "Brandon Hines", + "author": { + "name": "Brandon Hines", + "url": "https://github.com/NappyPirate" + }, "license": "MIT", "peerDependencies": { "react-native": ">=0.52.0" diff --git a/react-native-biometrics.podspec b/react-native-biometrics.podspec new file mode 100644 index 0000000..10173b0 --- /dev/null +++ b/react-native-biometrics.podspec @@ -0,0 +1,17 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + +Pod::Spec.new do |s| + s.name = package['name'] + s.version = package['version'] + s.summary = package['summary'] + s.description = package['description'] + s.author = package['author']['name'] + s.license = package['license'] + s.homepage = package['homepage'] + s.source = { :git => 'https://github.com/SelfLender/react-native-biometrics.git', :tag => "#{s.version}" } + s.platform = :ios, '8.0' + s.source_files = 'ios/**/*.{h,m}' + s.dependency 'React' +end