Skip to content

Commit

Permalink
add an extra step on android, update oauth docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ruddell committed Sep 30, 2019
1 parent c18179e commit 8cac73b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 9 additions & 1 deletion boilerplate/app/modules/home/launch-screen.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { ScrollView, Text, Image, View } from 'react-native'
import { ScrollView, Text, Image, View, Platform } from 'react-native'
import { DebugInstructions, ReloadInstructions } from 'react-native/Libraries/NewAppScreen'
import { Navigation } from 'react-native-navigation'

Expand Down Expand Up @@ -55,6 +55,14 @@ export default class LaunchScreen extends React.Component {
</View>
)}
<View style={styles.body}>
{Platform.OS === 'ios' ? null : (
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Step Zero</Text>
<Text style={styles.sectionDescription}>
Run <Text style={styles.highlight}>adb reverse tcp:8080 tcp:8080</Text> to be able to connect to your JHipster backend (Android only).
</Text>
</View>
)}
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Step One</Text>
<Text style={styles.sectionDescription}>
Expand Down
5 changes: 0 additions & 5 deletions docs/oauth2-oidc.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

For a full walkthrough of generating and configuring OAuth2 with Ignite JHipster, check out Matt Raible's post ["Build a Mobile App with React Native and Spring Boot"](https://developer.okta.com/blog/2018/10/10/react-native-spring-boot-mobile-app) or [Youtube video](https://www.youtube.com/watch?v=h7QcSe-LYZg) of the same.

### Native iOS Library Setup

Cocoapods is the usual choice for setting up the native iOS libraries needed for OAuth2 support. If you didn't have Cocoapods installed before generating your app, [install it](https://guides.cocoapods.org/using/getting-started.html), then run `pod install` from the `ios` directory. Note that you open the `xcworkspace` file rather than the `xcproject` file when using Cocoapods.

If you don't want to use Cocoapods, follow one of the [other setup instructions for react-native-app-auth](https://github.com/FormidableLabs/react-native-app-auth#ios-setup) and delete the `ios/Podfile` file.

### Backend Generated Files
Ignite JHipster generates several files in your JHipster backend's folder. See the changes in your JHipster app.
Expand Down

0 comments on commit 8cac73b

Please sign in to comment.