Skip to content

Commit

Permalink
Initialize new development environment
Browse files Browse the repository at this point in the history
  • Loading branch information
amanalili committed Mar 22, 2017
1 parent 65e1f99 commit d89653e
Show file tree
Hide file tree
Showing 85 changed files with 19,432 additions and 330 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
1 change: 0 additions & 1 deletion ios/airbitz_ui.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
Expand Down
174 changes: 87 additions & 87 deletions ios/airbitz_ui/Info.plist
Original file line number Diff line number Diff line change
@@ -1,90 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Airbitz React</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>99.99.99</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>9999999999</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>UIAppFonts</key>
<array>
<string>lato.ttf</string>
<string>Lato-Light.ttf</string>
<string>Lato-LightItalic.ttf</string>
<string>Lato-Regular.ttf</string>
<string>Lato-Italic.ttf</string>
<string>Lato-Hairline.ttf</string>
<string>Lato-HairlineItalic.ttf</string>
<string>Lato-BoldItalic.ttf</string>
<string>Lato-Bold.ttf</string>
<string>Lato-Black.ttf</string>
<string>Lato-BlackItalic.ttf</string>
<string>Andale Mono.ttf</string>
<string>Arial Black.ttf</string>
<string>Arial.ttf</string>
<string>Comic Sans MS.ttf</string>
<string>Courier New.ttf</string>
<string>Georgia.ttf</string>
<string>Microsoft Sans Serif.ttf</string>
<string>Roboto_medium.ttf</string>
<string>Roboto.ttf</string>
<string>SF-UI-Text-Regular.otf</string>
<string>Skia.ttf</string>
<string>Times New Roman.ttf</string>
<string>Entypo.ttf</string>
<string>EvilIcons.ttf</string>
<string>FontAwesome.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>Octicons.ttf</string>
<string>SimpleLineIcons.ttf</string>
<string>Zocial.ttf</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Airbitz React</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>99.99.99</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>9999999999</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string/>
<key>UIAppFonts</key>
<array>
<string>lato.ttf</string>
<string>Lato-Light.ttf</string>
<string>Lato-LightItalic.ttf</string>
<string>Lato-Regular.ttf</string>
<string>Lato-Italic.ttf</string>
<string>Lato-Hairline.ttf</string>
<string>Lato-HairlineItalic.ttf</string>
<string>Lato-BoldItalic.ttf</string>
<string>Lato-Bold.ttf</string>
<string>Lato-Black.ttf</string>
<string>Lato-BlackItalic.ttf</string>
<string>Andale Mono.ttf</string>
<string>Arial Black.ttf</string>
<string>Arial.ttf</string>
<string>Comic Sans MS.ttf</string>
<string>Courier New.ttf</string>
<string>Georgia.ttf</string>
<string>Microsoft Sans Serif.ttf</string>
<string>Roboto_medium.ttf</string>
<string>Roboto.ttf</string>
<string>SF-UI-Text-Regular.otf</string>
<string>Skia.ttf</string>
<string>Times New Roman.ttf</string>
<string>Entypo.ttf</string>
<string>EvilIcons.ttf</string>
<string>FontAwesome.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>Octicons.ttf</string>
<string>SimpleLineIcons.ttf</string>
<string>Zocial.ttf</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,20 @@
"domain-browser": "^1.1.7",
"events": "^1.1.1",
"https-browserify": "0.0.1",
"inherits": "^2.0.1",
"lodash": "^4.17.2",
"native-base": "^0.5.18",
"os-browserify": "^0.1.2",
"path-browserify": "0.0.0",
"process": "^0.11.9",
"punycode": "^1.4.1",
"querystring-es3": "^0.2.1",
"react": "^15.4.1",
"react-native": "^0.39.2",
"react": "^15.4.2",
"react-native": "v0.39.2",
"react-native-animatable": "^1.1.0",
"react-native-crypto": "^2.0.1",
"react-native-device-info": "^0.9.6",
"react-native-elements": "^0.10.0",
"react-native-fs": "^2.0.1-rc.2",
"react-native-http": "github:tradle/react-native-http#834492d",
"react-native-level-fs": "^3.0.0",
Expand All @@ -63,13 +65,12 @@
"redux-logger": "^2.7.4",
"redux-thunk": "^2.1.0",
"stream-browserify": "^1.0.0",
"string_decoder": "~0.10.25",
"timers-browserify": "^1.4.2",
"tty-browserify": "0.0.0",
"url": "^0.10.3",
"util": "^0.10.3",
"vm-browserify": "0.0.4",
"inherits": "^2.0.1",
"string_decoder": "~0.10.25"
"vm-browserify": "0.0.4"
},
"devDependencies": {
"ava": "^0.17.0",
Expand Down Expand Up @@ -143,4 +144,4 @@
"tty": "tty-browserify",
"vm": "vm-browserify"
}
}
}
42 changes: 4 additions & 38 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,18 @@ import { Scene, Router } from 'react-native-router-flux'
import { Platform, AppRegistry } from 'react-native'
import t from './lib/LocaleStrings'

String.format = function (format) {
const args = Array.prototype.slice.call(arguments, 1)
return format.replace(/{(\d+)}/g, function (match, number) {
return typeof args[number] !== 'undefined'
? args[number]
: match
})
}

import Landing from './modules/Landing.ui'
import Home from './modules/Home/Home.ui'
import Username from './modules/Username/Username.ui'
import PinNumber from './modules/PinNumber/PinNumber.ui'
import Password from './modules/Password/Password.ui'
import CameraNotification from './modules/SignUpNotifications/Camera.ui'
import ContactNotification from './modules/SignUpNotifications/Contact.ui'
import ReviewDetails from './modules/ReviewDetails/ReviewDetails.ui'

const RouterWithRedux = connect()(Router)
const store = configureStore()

import Landing from './modules/Landing.ui'

export default class App extends Component {
noop = () => {
// noop
}
render () {
let paddingOS = 54
let exitPaddingOS = 0
if (Platform.OS === 'ios') {
paddingOS = 64
exitPaddingOS = 3
}
return (
<Provider store={store}>
<RouterWithRedux>
<Scene key='root'>
<Scene key='signup'>
<Scene key='username' leftButtonTextStyle={{marginTop: exitPaddingOS}} leftTitle={t('string_capitalize_exit')} sceneStyle={{paddingTop: paddingOS}} onLeft={this.noop} ref='usernameView' component={Username} title={'Enter Username'} initial />
<Scene key='pin' component={PinNumber} sceneStyle={{paddingTop: paddingOS}} title={'Enter Pin'} />
<Scene key='password' component={Password} title={'Enter Password'} sceneStyle={{paddingTop: paddingOS}} />
<Scene key='cameraNotification' component={CameraNotification} title={'Camera Notification'} sceneStyle={{paddingTop: paddingOS}} type='reset' />
<Scene key='contactNotification' component={ContactNotification} title={'Contact Notification'} sceneStyle={{paddingTop: paddingOS}} type='reset' />
<Scene key='review' component={ReviewDetails} title={'Details'} sceneStyle={{paddingTop: paddingOS}} type='reset' />
</Scene>
<Scene key='landing' component={Landing} type='reset' initial hideNavBar />
<Scene key='home' component={Home} hideNavBar type='reset' />
<Scene key='root' hideNavBar>
<Scene key='landing' component={Landing} title='Landing' initial />
</Scene>
</RouterWithRedux>
</Provider>
Expand Down
12 changes: 6 additions & 6 deletions src/lib/configureStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import thunk from 'redux-thunk'

let middleware = [thunk]

if (__DEV__) {
const createLogger = require('redux-logger')
const logger = createLogger({ collapsed: true })
middleware = [...middleware, logger]
} else {
// if (__DEV__) {
// const createLogger = require('redux-logger')
// const logger = createLogger({ collapsed: true })
// middleware = [...middleware, logger]
// } else {
middleware = [...middleware]
}
// }

export default function configureStore (initialState) {
return createStore(
Expand Down
Loading

0 comments on commit d89653e

Please sign in to comment.