File tree Expand file tree Collapse file tree 4 files changed +22
-7
lines changed
app/views/Authentication/Demos Expand file tree Collapse file tree 4 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ Release-iphonesimulator/
4949ios /FirestackApp /FirestackApp.entitlements
5050coverage /
5151ios /Pods
52+ config /all.js
5253config /development.js
5354config /development.android.js
5455
Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ const opts = {
1919 google : { scopes : 'email,profile' } ,
2020 facebook : { } ,
2121 twitter : { } ,
22- github : { } ,
22+ github : {
23+ scopes : 'notifications,profile'
24+ } ,
2325 slack : { scopes : 'channels:read' }
2426}
2527
@@ -137,15 +139,16 @@ export class Providers extends React.Component {
137139 } ) ;
138140 }
139141 } else if ( provider === 'github' ) {
140- url = '/users/auser/events '
142+ url = '/notifications '
141143 handleResp = resp => {
142144 const { data} = resp ;
143- const newData = data . map ( d => ( { id : d . id , text : `${ d . type } : ${ d . repo . name } ` } ) )
145+ const newData = data . map ( d => ( { id : d . id , text : `${ d . reason } : ${ d . repository . name } ` } ) )
144146 this . setState ( { data : newData } ) ;
145147 }
146148 } else if ( provider === 'slack' ) {
147149 url = '/channels.list'
148150 handleResp = resp => {
151+ console . log ( 'resp ->' , resp ) ;
149152 const { channels} = resp . data
150153 const newData = channels . map ( d => ( { id : d . id , text : `${ d . name } ` } ) )
151154 this . setState ( { data : newData } ) ;
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ firestack : {
3+ debug : '*'
4+ } ,
5+ auth : { }
6+ }
Original file line number Diff line number Diff line change 11import { Platform } from 'react-native' ;
2+ import _ from 'lodash' ;
3+
4+ const NODE_ENV = process . env . NODE_ENV ;
25
36let defaultEnv = {
47 NAME : 'DoGood'
58}
69
7- const NODE_ENV = process . env . NODE_ENV ;
10+ let general = { } ;
11+ try {
12+ general = require ( './all' ) ;
13+ } catch ( e ) { }
14+
815let env = { }
916if ( NODE_ENV === 'development' ) {
1017 env = require ( './development' )
1118}
1219
13- try {
14- env = Object . assign ( { } , env , require ( `${ NODE_ENV } .${ Platform . OS } ` ) ) ;
15- } catch ( e ) { }
20+ env = _ . merge ( { } , general , env ) ;
1621
1722module . exports = Object . assign ( { } , defaultEnv , env ) ;
You can’t perform that action at this time.
0 commit comments