Skip to content

Commit

Permalink
Merge pull request #41 from 1fabiopereira/chore/update-gradle
Browse files Browse the repository at this point in the history
chore: update gradle version from 7.3.3 to 8.0.1
  • Loading branch information
1fabiopereira authored Aug 10, 2023
2 parents 6e3db12 + 33950e5 commit efd1b82
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 28 deletions.
22 changes: 2 additions & 20 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,22 @@ buildscript {
: project.properties['PdfExtractor_kotlinVersion']

repositories {
mavenCentral()
google()
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
}

dependencies {
classpath('com.android.tools.build:gradle:7.1.3')
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.0"
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.5'
}
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'org.sonarqube'
apply plugin: 'com.dicedmelon.gradle.jacoco-android'

jacoco {
toolVersion = "0.8.4"
}

def kotlin_version = getExtOrDefault("kotlinVersion")

sonarqube {
properties {
property "sonar.projectKey", "code-leak_react-native-pdf-extractor_android"
property "sonar.organization", "code-leak"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.sourceEncoding", "UTF-8"
property "sonar.java.coveragePlugin", "jacoco"
}
}

def getExtOrDefault(name) {
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['PdfExtractor_' + name]
}
Expand All @@ -53,7 +35,7 @@ android {
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
versionCode 1
versionName "0.1.2"
versionName "0.2.5"
}

buildTypes {
Expand Down
5 changes: 3 additions & 2 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
android.enableJetifier=true
android.useAndroidX=true

PdfExtractor_compileSdkVersion=29
PdfExtractor_compileSdkVersion=33
PdfExtractor_kotlinVersion=1.7.10
PdfExtractor_minSdkVersion=21
PdfExtractor_targetSdkVersion=29
PdfExtractor_targetSdkVersion=33

Binary file modified android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion android/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ eval "set -- $(
tr '\n' ' '
)" '"$@"'

exec "$JAVACMD" "$@"
exec "$JAVACMD" "$@"
2 changes: 1 addition & 1 deletion android/gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
:omega
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-pdf-extractor",
"version": "0.2.4",
"version": "0.2.5",
"description": "This library allows you to extract pdfs file data using matches specifics patterns.",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
Expand Down
3 changes: 2 additions & 1 deletion sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@react-native-community/cli-platform-android": "^11.3.2",
"@types/react-native-document-picker": "^3.1.1",
"babel-plugin-module-resolver": "^4.1.0",
"metro-react-native-babel-preset": "^0.71.1"
"metro-react-native-babel-preset": "^0.71.1",
"react-native-modal": "^13.0.1"
}
}
17 changes: 16 additions & 1 deletion sample/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3631,7 +3631,7 @@ prompts@^2.4.0:
kleur "^3.0.3"
sisteransi "^1.0.5"

prop-types@^15.7.2:
prop-types@^15.6.2, prop-types@^15.7.2:
version "15.8.1"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
Expand Down Expand Up @@ -3671,6 +3671,13 @@ react-is@^17.0.1:
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==

[email protected]:
version "1.3.3"
resolved "https://registry.yarnpkg.com/react-native-animatable/-/react-native-animatable-1.3.3.tgz#a13a4af8258e3bb14d0a9d839917e9bb9274ec8a"
integrity sha512-2ckIxZQAsvWn25Ho+DK3d1mXIgj7tITkrS4pYDvx96WyOttSvzzFeQnM2od0+FUMzILbdHDsDEqZvnz1DYNQ1w==
dependencies:
prop-types "^15.7.2"

react-native-codegen@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/react-native-codegen/-/react-native-codegen-0.0.6.tgz#b3173faa879cf71bfade8d030f9c4698388f6909"
Expand All @@ -3694,6 +3701,14 @@ react-native-document-picker@^8.1.1:
dependencies:
invariant "^2.2.4"

react-native-modal@^13.0.1:
version "13.0.1"
resolved "https://registry.yarnpkg.com/react-native-modal/-/react-native-modal-13.0.1.tgz#691f1e646abb96fa82c1788bf18a16d585da37cd"
integrity sha512-UB+mjmUtf+miaG/sDhOikRfBOv0gJdBU2ZE1HtFWp6UixW9jCk/bhGdHUgmZljbPpp0RaO/6YiMmQSSK3kkMaw==
dependencies:
prop-types "^15.6.2"
react-native-animatable "1.3.3"

[email protected]:
version "0.64.1"
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.64.1.tgz#cd38f5b47b085549686f34eb0c9dcd466f307635"
Expand Down

0 comments on commit efd1b82

Please sign in to comment.