Skip to content

Commit

Permalink
Fix Expo Plugin Export (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
poovamraj authored Jul 10, 2023
1 parent 54497a3 commit 76f338c
Show file tree
Hide file tree
Showing 20 changed files with 135 additions and 1,989 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ workflows:
branches:
only:
- master
- vnext
# - vnext
1 change: 1 addition & 0 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Web Auth will now have default scope of 'openid profile email', so these scopes can be removed if you're explicitly specifying them
- Minimum supported version for iOS is bumped to 13
- Minimum supported version for Expo is bumped to 48
- Revoke Token and Change Password now return `void` instead of an empty object

### Breaking changes
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

- [Quickstart](https://auth0.com/docs/quickstart/native/react-native-beta/interactive)
- [Expo Quickstart](https://auth0.com/docs/quickstart/native/react-native-expo-beta/interactive)
- [Sample App](https://github.com/auth0-samples/auth0-react-native-sample/tree/master/00-Login-Hooks)
- [Expo Sample App](https://github.com/auth0-samples/auth0-react-native-sample/tree/master/00-Login-Expo)
- [Sample App](https://github.com/auth0-samples/auth0-react-native-sample/tree/v3-beta/00-Login-Hooks)
- [Expo Sample App](https://github.com/auth0-samples/auth0-react-native-sample/tree/v3-beta/00-Login-Expo)
- [FAQs](https://github.com/auth0/react-native-auth0/blob/master/FAQ.md)
- [Examples](https://github.com/auth0/react-native-auth0/blob/master/EXAMPLES.md)
- [Docs Site](https://auth0.github.io/react-native-auth0/)
Expand Down
2 changes: 1 addition & 1 deletion app.plugin.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./plugin/build/withAuth0');
module.exports = require('./lib/commonjs/plugin/withAuth0');
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To run the example application inside the repository, follow these steps:

1. Open a terminal or command prompt.
2. Run `yarn run bootstrap` to set up the project.
3. Run `yarn run prepack` to build the project.
3. Run `yarn run prepare` to build the project.
4. To run the application:
For Android, run `yarn example android`.
For iOS, run `yarn example ios`.
Expand Down
6 changes: 3 additions & 3 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- A0Auth0 (2.17.4):
- A0Auth0 (3.0.0-beta.2):
- Auth0 (= 2.4.0)
- JWTDecode (= 3.1.0)
- React-Core
Expand Down Expand Up @@ -584,7 +584,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
A0Auth0: e9f7ade527d315e0ca51991c56d254fd0c47d54b
A0Auth0: 34a88d6ea01d78133e7d228384d07b840162c7ea
Auth0: 7c454e679f19d160f1f32bf1e9fa095db19f8769
boost: 57d2868c099736d80fcd648bf211b4431e51a558
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
Expand Down Expand Up @@ -640,4 +640,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 78e8dab006d0d9a82e41a924fda07d925d4623c7

COCOAPODS: 1.12.1
COCOAPODS: 1.11.2
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @flow strict-local
*/

import React, { useEffect } from 'react';
import React from 'react';
import { Alert, Button, StyleSheet, Text, View } from 'react-native';
import { useAuth0, Auth0Provider } from 'react-native-auth0';
import config from './auth0-configuration';
Expand Down
7 changes: 0 additions & 7 deletions index.ts

This file was deleted.

17 changes: 6 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "react-native-auth0",
"title": "React Native Auth0",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"description": "React Native toolkit for Auth0 API",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/index.d.ts",
"react-native": "index",
"source": "index",
"types": "lib/typescript/src/index.d.ts",
"react-native": "src/index",
"source": "src/index",
"files": [
"src",
"lib",
"android",
"ios",
"cpp",
"index.ts",
"*.podspec",
"app.plugin.js",
"!lib/typescript/example",
"!ios/build",
"!android/build",
Expand All @@ -34,15 +34,11 @@
"docs": "typedoc",
"typecheck": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"prepack": "bob build",
"release": "release-it",
"example": "yarn --cwd example",
"bootstrap": "yarn example && yarn install && yarn example pods",
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build && expo-module clean",
"build": "expo-module build",
"prepare": "expo-module prepare",
"prepublishOnly": "expo-module prepublishOnly",
"expo-module": "expo-module"
"prepare": "bob build"
},
"keywords": [
"react-native",
Expand Down Expand Up @@ -100,7 +96,6 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"expo": "^48.0.0",
"expo-module-scripts": "^2.0.0",
"faker": "^4.1.0",
"fetch-mock": "^7.3.9",
"husky": "^4.2.5",
Expand Down
1 change: 0 additions & 1 deletion plugin/jest.config.js

This file was deleted.

9 changes: 0 additions & 9 deletions plugin/tsconfig.json

This file was deleted.

7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export { TimeoutError } from './utils/fetchWithTimeout';
export { default as useAuth0 } from './hooks/use-auth0';
export { default as Auth0Provider } from './hooks/auth0-provider';
export { default as LocalAuthenticationStrategy } from './credentials-manager/localAuthenticationStrategy';

import Auth0 from './auth0';
export default Auth0;
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 76f338c

Please sign in to comment.