-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from mia-ajuda/215-EntregaContínua
215 - Configuração da entrega contínua com EAS Submit
- Loading branch information
Showing
58 changed files
with
412 additions
and
741 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: submit app to play store | ||
|
||
|
||
on : | ||
push : | ||
branches : [ master ] | ||
|
||
jobs: | ||
submit: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./app | ||
|
||
steps: | ||
- name: 🏗 Setup repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🏗 Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: yarn | ||
cache-dependency-path: app/yarn.lock | ||
|
||
- name: 🏗 Config files | ||
run: | | ||
echo "$GOOGLE_SERVICES" > google-services.json | ||
echo "$FIREBASE_CONFIG_DEV" > ./src/config/authmiaajuda-firebase-dev.json | ||
echo "$FIREBASE_CONFIG" > ./src/config/authmiaajuda-firebase.json | ||
echo "$ENV_VARIABLE" > .env | ||
echo "$SERVICE_ACCOUNT_KEY" > ./serviceAccountKey.json | ||
env: | ||
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }} | ||
FIREBASE_CONFIG_DEV: ${{ secrets.FIREBASE_CONFIG_DEV }} | ||
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }} | ||
ENV_VARIABLE: ${{ secrets.ENV_VARIABLE }} | ||
SERVICE_ACCOUNT_KEY: ${{ secrets.SERVICE_ACCOUNT_KEY }} | ||
|
||
- name: 🏗 Setup Expo and EAS | ||
uses: expo/expo-github-action@v7 | ||
with: | ||
expo-version: latest | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: 📦 Install dependencies | ||
run: yarn install --pure-lockfile --non-interactive | ||
|
||
- name: 📦 Build prod aab by expo build | ||
run: expo build:android -t app-bundle --release-channel=prod --non-interactive | ||
|
||
- name: 📦 Retrieve last build url version | ||
run: echo "BUILD_URL=$(expo url:apk)" >> $GITHUB_ENV | ||
|
||
- name: 📦 Submit latest aab build to play store as production app | ||
run: eas submit -p android --url ${{ env.BUILD_URL }} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ export default ({ config }) => { | |
apiKey: MAPS_API_KEY, | ||
}, | ||
}, | ||
versionCode: 211, | ||
versionCode: 220, | ||
}, | ||
}; | ||
}; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"cli": { | ||
"version": ">= 0.57.0" | ||
}, | ||
"submit": { | ||
"production": { | ||
"android": { | ||
"serviceAccountKeyPath": "./serviceAccountKey.json", | ||
"track": "production" | ||
} | ||
}, | ||
"alpha_test": { | ||
"android": { | ||
"serviceAccountKeyPath": "./serviceAccountKey.json", | ||
"track": "alpha" | ||
} | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
const { getDefaultConfig } = require('metro-config'); | ||
const { getDefaultConfig } = require('expo/metro-config'); | ||
|
||
module.exports = (async () => { | ||
const { | ||
resolver: { sourceExts, assetExts }, | ||
} = await getDefaultConfig(); | ||
const config = getDefaultConfig(__dirname); | ||
|
||
return { | ||
transformer: { | ||
babelTransformerPath: require.resolve( | ||
'react-native-svg-transformer', | ||
), | ||
}, | ||
resolver: { | ||
assetExts: assetExts.filter((ext) => ext !== 'svg'), | ||
sourceExts: [...sourceExts, 'svg'], | ||
}, | ||
}; | ||
})(); | ||
config.transformer.babelTransformerPath = require.resolve( | ||
'react-native-svg-transformer', | ||
); | ||
|
||
config.resolver.assetExts = config.resolver.assetExts.filter( | ||
(ext) => ext !== 'svg', | ||
); | ||
config.resolver.sourceExts = [...config.resolver.sourceExts, 'svg']; | ||
|
||
module.exports = config; |
This file contains 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
This file contains 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
This file contains 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
50 changes: 5 additions & 45 deletions
50
app/src/components/FAQModals/EmergencyNumbersModal/index.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,13 @@ | ||
import React from 'react'; | ||
import { Modal, ScrollView, TouchableOpacity, View, Text } from 'react-native'; | ||
import { Icon } from 'react-native-elements'; | ||
import Container from '../../Container'; | ||
import colors from '../../../../assets/styles/colorVariables'; | ||
import emergencyNumbers from '../../../docs/FAQ/EmergencyNumbers'; | ||
import styles from './styles'; | ||
import { ModalComponent } from '../modal'; | ||
|
||
export default function EmergencyNumbers({ visible, setVisible }) { | ||
const renderEmergencyNumbersList = () => ( | ||
<View style={styles.modalContent}> | ||
<ScrollView indicatorStyle="white"> | ||
{emergencyNumbers.map((numbers) => { | ||
return ( | ||
<View key={numbers.id}> | ||
<Text style={styles.title}> {numbers.number} </Text> | ||
<Text style={styles.description}> | ||
{' '} | ||
{numbers.description}{' '} | ||
</Text> | ||
</View> | ||
); | ||
})} | ||
</ScrollView> | ||
</View> | ||
); | ||
|
||
return ( | ||
<Modal | ||
<ModalComponent | ||
visible={visible} | ||
transparent | ||
onRequestClose={() => setVisible(false)} | ||
animationType="fade"> | ||
<View style={styles.modalContainer}> | ||
<Container> | ||
<TouchableOpacity | ||
onPress={() => { | ||
setVisible(false); | ||
}} | ||
style={styles.icon}> | ||
<Icon | ||
name="times-circle" | ||
type="font-awesome" | ||
color={colors.primary} | ||
size={35} | ||
/> | ||
</TouchableOpacity> | ||
{renderEmergencyNumbersList()} | ||
</Container> | ||
</View> | ||
</Modal> | ||
setVisible={setVisible} | ||
list={emergencyNumbers} | ||
/> | ||
); | ||
} |
46 changes: 0 additions & 46 deletions
46
app/src/components/FAQModals/EmergencyNumbersModal/styles.js
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
app/src/components/FAQModals/HowToUseModal/HowToChoseHelpOfferModal/index.js
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
app/src/components/FAQModals/HowToUseModal/HowToChoseHelpOfferModal/styles.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.