Skip to content

Commit 1289ee7

Browse files
committed
Move spec file
1 parent 69748cd commit 1289ee7

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

example/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"node": ">=20"
77
},
88
"scripts": {
9+
"android": "react-native run-android",
10+
"ios": "react-native run-ios",
911
"pod-backup": "cp ../RNPermissions.podspec ../RNPermissions.podspec.bak",
1012
"pod-restore": "mv ../RNPermissions.podspec.bak ../RNPermissions.podspec",
1113
"pod-update": "yarn pod-backup && cd ios && bundle install && bundle exec pod update && cd .. && yarn pod-restore",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"codegenConfig": {
5454
"name": "RNPermissionsSpec",
5555
"type": "modules",
56-
"jsSrcsDir": "./src",
56+
"jsSrcsDir": "./src/specs",
5757
"android": {
5858
"javaPackageName": "com.zoontek.rnpermissions"
5959
},

src/methods.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Alert, Platform} from 'react-native';
2-
import NativeModule from './NativeRNPermissions';
32
import type {Contract} from './contract';
3+
import NativeModule from './specs/NativeRNPermissions';
44
import type {NotificationsResponse, Permission, PermissionStatus, Rationale} from './types';
55
import {
66
checkLocationAccuracy,

src/methods.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type {Contract} from './contract';
2-
import NativeModule from './NativeRNPermissions';
2+
import NativeModule from './specs/NativeRNPermissions';
33
import type {LocationAccuracy, NotificationsResponse, PermissionStatus} from './types';
44
import {canScheduleExactAlarms, canUseFullScreenIntent} from './unsupportedMethods';
55
import {uniq} from './utils';

src/methods.windows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import NativeModule from './NativeRNPermissions';
21
import type {Contract} from './contract';
2+
import NativeModule from './specs/NativeRNPermissions';
33
import type {NotificationsResponse, PermissionStatus} from './types';
44
import {
55
canScheduleExactAlarms,
File renamed without changes.

0 commit comments

Comments
 (0)