Skip to content

Commit afe25e3

Browse files
authored
fix: remove use of deprecated api (#859)
* fix: remove use of deprecated api * Create khaki-donuts-know.md
1 parent c8d800f commit afe25e3

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.changeset/khaki-donuts-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-native-documents/viewer": patch
3+
---
4+
5+
fix: remove use of deprecated api

.github/workflows/nodejs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
# Allows you to run this workflow manually from the Actions tab
1212
workflow_dispatch:
1313

14+
permissions:
15+
id-token: write # Required for OIDC
16+
contents: read
17+
1418
jobs:
1519
build:
1620
runs-on: ubuntu-latest
@@ -50,4 +54,3 @@ jobs:
5054
publish: yarn run release-packages
5155
env:
5256
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53-
NPM_TOKEN: ${{ secrets.NPM_TOKEN_NEW }}

packages/document-viewer/android/src/main/java/com/reactnativedocumentviewer/RNDocumentViewerModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RNDocumentViewerModule(reactContext: ReactApplicationContext) : NativeDocu
2222
presentation: String?,
2323
promise: Promise
2424
) {
25-
val currentActivity = currentActivity
25+
val currentActivity = reactApplicationContext.currentActivity
2626
if (currentActivity == null) {
2727
rejectWithNullActivity(promise)
2828
return

packages/document-viewer/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
},
5555
"homepage": "https://github.com/react-native-documents/document-picker#readme",
5656
"publishConfig": {
57-
"access": "public"
57+
"access": "public",
58+
"provenance": true
5859
},
5960
"devDependencies": {
6061
"@tsconfig/node18": "^18.2.4",

0 commit comments

Comments
 (0)