Skip to content

Commit c8d800f

Browse files
authored
Revert "fix: remove use of deprecated api (#857)" (#858)
This reverts commit 57a2886.
1 parent 57a2886 commit c8d800f

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ 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-
1814
jobs:
1915
build:
2016
runs-on: ubuntu-latest
@@ -54,3 +50,4 @@ jobs:
5450
publish: yarn run release-packages
5551
env:
5652
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 = reactApplicationContext.currentActivity
25+
val currentActivity = currentActivity
2626
if (currentActivity == null) {
2727
rejectWithNullActivity(promise)
2828
return

packages/document-viewer/package.json

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

0 commit comments

Comments
 (0)