This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getVersionName = { -> | |
def hashStdOut = new ByteArrayOutputStream() | |
exec { | |
commandLine "git", "rev-parse", "--short", "HEAD" | |
standardOutput = hashStdOut | |
} | |
def buildNumberStdOut = new ByteArrayOutputStream() | |
exec { | |
commandLine 'echo', "$BUILD_NUMBER" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-console, no-param-reassign */ | |
import { create } from 'apisauce'; | |
import qs from 'qs'; | |
import R from 'ramda'; | |
import config from '../../config'; | |
const api = create({ | |
baseURL: config.baseURL, | |
headers: { | |
Accept: 'application/json', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Link } from 'react-router-dom'; | |
import api from './Api'; | |
class Cakes extends React.Component { | |
constructor(props){ | |
super(props); | |
this.state = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { View, Text } from 'react-native'; | |
import Geocoder from 'react-native-geocoder'; | |
// Chave do Google Maps | |
Geocoder.apiKey = 'AIza...'; | |
export default class Example extends React.Component { | |
constructor(props) { | |
super(props); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ./app/sagas/index.js | |
import { all, takeLatest } from 'redux-saga/effects'; | |
/* Services */ | |
import api from '../services/api'; | |
/* Redux Actions */ | |
import { InitTypes } from '../redux/init'; | |
import { UserTypes } from '../redux/user'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
".source.js": | |
"React: import component": | |
prefix: "li" | |
body: "import ${1} from './${1}';" | |
"React: constructor": | |
prefix: "construct" | |
body: "constructor(props) {\n\tsuper(props);\n\t${1}\n}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { Text, View } from 'react-native'; | |
export default class App extends Component { | |
render() { | |
return ( | |
<View> | |
<Text>Hello World!</Text> | |
</View> | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function uploadImage(data, frame, options) { | |
const formData = new FormData(); // eslint-disable-line no-undef | |
/** | |
* 'foto' é o nome do campo que você vai resgatar em uploadURL | |
* data é um objeto que possui o uri da imagem | |
* options são as opções da request (headers por exemplo) | |
*/ | |
formData.append('foto', { | |
...data, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class MainScreen extends React.Component { | |
constructor(props) { | |
super(props); | |
this.ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1.id !== r2.id}); | |
this.state = { | |
list: [], | |
dataSource: this.ds.cloneWithRows([]), | |
check: {}, | |
checkAll: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable global-require */ | |
const images = { | |
app_logo: require('../images/app_logo.png'), | |
carsystem_logo: require('../images/carsystem_logo.png'), | |
carsystem_tecnologia_logo: require('../images/carsystem_tecnologia_logo.png'), | |
ibahia: require('../images/ibahia.png'), | |
ibahia_mono: require('../images/ibahia_mono.png'), | |
circuitos: { | |
dodo: require('../images/circuito_dodo.png'), | |
osmar: require('../images/circuito_osmar.png') |