Skip to content

Commit

Permalink
docs: link to the new site
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak committed Nov 17, 2023
1 parent 7f3bdf6 commit c5a2ed6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 372 deletions.
51 changes: 3 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<a href="https://www.npmjs.com/package/@react-native-google-signin/google-signin"><img src="https://badge.fury.io/js/@react-native-google-signin%2Fgoogle-signin.svg" alt="NPM Version"></a>
</p>

### 🚧🚧 New features planned: looking for sponsors and collaborators 🚧🚧

See this [issue](https://github.com/react-native-google-signin/google-signin/issues/942)
❤️❤️ [New documentation site available!](https://react-native-google-signin.github.io/) ❤️❤️

## Features

Expand All @@ -22,52 +20,9 @@ See this [issue](https://github.com/react-native-google-signin/google-signin/iss

## Project setup and initialization

There are two ways to install the package:

The latest version that

✅ supports the new [One Tap sign-in on Android](https://developers.google.com/identity/one-tap/android/overview) which can be easily used together with the Google Sign-In for iOS

✅ supports the React Native [New Architecture](https://reactnative.dev/docs/new-architecture-intro)

✅ includes some API improvements and minor fixes

is only available to [GitHub sponsors](https://github.com/sponsors/vonovak) of the maintainer.

When you become a sponsor using one of the marked tiers, you will automatically be invited to a private repo with the latest version of the package. The package is published to a private GH packages registry under the same name as the public one.

Alternatively, you can install from the public registry using `yarn add @react-native-google-signin/google-signin` which will install an older version.

The public version will be kept working, but it may not include the latest fixes and features. This is to incentivize sponsorships and thus support the maintenance of the package in the long term.
My goal is to include all improvements from the private package in the public one (and remove the private one) once there is sufficient support from sponsors :+1:.

Then follow the [Android guide](docs/android-guide.md) and [iOS guide](docs/ios-guide.md)

## Expo installation

> This package cannot be used in the "Expo Go" app because [it requires custom native code](https://docs.expo.io/workflow/customizing/). _However, you can add custom native code to expo by following the guide below._
```sh
npx expo install @react-native-google-signin/google-signin
```

After installing this npm package, add the [config plugin](https://docs.expo.io/guides/config-plugins/) to the [`plugins`](https://docs.expo.io/versions/latest/config/app/#plugins) array of your `app.json` or `app.config.js`:

```json
{
"expo": {
"android": {
"googleServicesFile": "./google-services.json"
},
"ios": {
"googleServicesFile": "./GoogleService-Info.plist"
},
"plugins": ["@react-native-google-signin/google-signin"]
}
}
```
Please follow the "Installation" and "Setting up" guides at [react-native-google-signin.github.io](https://react-native-google-signin.github.io/).

Next, rebuild your app as described in the ["Adding custom native code"](https://docs.expo.io/workflow/customizing/) guide.
Then, if you're a sponsor (as explained [here](https://react-native-google-signin.github.io/docs/install)), you can continue using the guides on the documentation site. If not, please use this readme file.

## Public API

Expand Down
190 changes: 0 additions & 190 deletions docs/android-guide.md

This file was deleted.

41 changes: 0 additions & 41 deletions docs/get-config-file.md

This file was deleted.

35 changes: 0 additions & 35 deletions docs/how-cocoapods.md

This file was deleted.

0 comments on commit c5a2ed6

Please sign in to comment.