Skip to content

Commit 91c6ec2

Browse files
committed
BREAKING CHANGE: dropping support for APIs 16 to 20, fix(release) bumping dependancies
1 parent e732573 commit 91c6ec2

80 files changed

Lines changed: 23921 additions & 23142 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# TESTS
2+
coverage/
13
# Examples
24
example
35
# OSX

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

55
`$ npm install react-native-hash --save`
66

7+
---
8+
**NOTE**
9+
10+
With react-native 0.64.0, the support for Android APIs 16 to 20 has been dropped.
11+
12+
if you need to suppord APIs bellow 21, consider using 1.x releases of this library.
13+
14+
---
15+
716
## Usage
817

918
### Constants

android/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import groovy.json.JsonSlurper
1212
// original location:
1313
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle
1414

15-
def DEFAULT_COMPILE_SDK_VERSION = 28
16-
def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3'
17-
def DEFAULT_MIN_SDK_VERSION = 16
18-
def DEFAULT_TARGET_SDK_VERSION = 28
15+
def DEFAULT_COMPILE_SDK_VERSION = 29
16+
def DEFAULT_BUILD_TOOLS_VERSION = '29.0.2'
17+
def DEFAULT_MIN_SDK_VERSION = 21
18+
def DEFAULT_TARGET_SDK_VERSION = 29
1919

2020
def safeExtGet(prop, fallback) {
2121
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
@@ -35,7 +35,7 @@ buildscript {
3535
jcenter()
3636
}
3737
dependencies {
38-
classpath 'com.android.tools.build:gradle:3.5.3'
38+
classpath 'com.android.tools.build:gradle:4.0.2'
3939
classpath "de.mannodermaus.gradle.plugins:android-junit5:1.3.2.0"
4040
}
4141
}

android/gradle.properties

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Project-wide Gradle settings.
2+
3+
# IDE (e.g. Android Studio) users:
4+
# Gradle settings configured through the IDE *will override*
5+
# any settings specified in this file.
6+
7+
# For more details on how to configure your build environment visit
8+
# http://www.gradle.org/docs/current/userguide/build_environment.html
9+
10+
# Specifies the JVM arguments used for the daemon process.
11+
# The setting is particularly useful for tweaking memory settings.
12+
# Default value: -Xmx10248m -XX:MaxPermSize=256m
13+
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14+
15+
# When configured, Gradle will run in incubating parallel mode.
16+
# This option should only be used with decoupled projects. More details, visit
17+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18+
# org.gradle.parallel=true
19+
20+
android.useAndroidX=true
21+
android.enableJetifier=true

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

coverage/JSHash/JSHash.js.html

Lines changed: 0 additions & 250 deletions
This file was deleted.

0 commit comments

Comments
 (0)