Skip to content

Commit 57a2886

Browse files
authored
fix: remove use of deprecated api (#857)
1 parent 84f1163 commit 57a2886

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.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)