Skip to content

Commit

Permalink
Added a podspec file and updated version to 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NappyPirate committed Apr 3, 2019
1 parent 996e038 commit 00dcdc4
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 15 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
6 changes: 4 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand All @@ -39,5 +40,6 @@ repositories {
}

dependencies {
implementation "com.android.support:appcompat-v7:${SUPPORT_LIB_VERSION}"
implementation 'com.facebook.react:react-native:+'
}
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
Expand Down
17 changes: 17 additions & 0 deletions react-native-biometrics.podspec
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 00dcdc4

Please sign in to comment.