-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into ts-theme-button
* develop: Add Danish to the list of languages. (#765) Fixed the aspect ration on the icon and add links (#763) Build time feature flags (Phase 1) (#694) Extract theme aware <IconButton /> component (#756) Latest i18n pull (#755) Add language contribution info to contributing guide (#754)
- Loading branch information
Showing
51 changed files
with
1,722 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This is the debug/dev .env file. Any debug or non-release-signed build will | ||
# use these flags. | ||
|
||
# About flags: | ||
# ------------ | ||
# Any variables that start with flag_ will be available to the <Flag> component | ||
# For now, only true/1 is parsed, everything else will be interpretted as false | ||
# flags must begin with flag_ and are case sensitive | ||
|
||
flag_google_import=true |
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,11 @@ | ||
# This is the BETA .env file, it is built for TestFlight and Google Play beta | ||
# channels. Flags that are ready for testing/beta should be enabled here. | ||
|
||
# When making any BETA channel build on both iOS or Android, prepend the build | ||
# command with ENVFILE=.env.beta | ||
# | ||
# e.g. | ||
# | ||
# ENVFILE=.env.beta ./gradlew assembleRelease | ||
|
||
# flag_google_import=true |
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,5 @@ | ||
# This is the release .env file, it is built for App store final releases | ||
# only prod ready feature flags should be enabled here. | ||
# | ||
# For Android, this file is automatically used for any release build. iOS should | ||
# prepend ENVFILE=.env.release before any build commands. |
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
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,3 @@ | ||
export default { | ||
FLAG_FOO_BAR: 'true', | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<resources> | ||
<!-- Channel label for notifications shown in App > Notifications > Safe Paths --> | ||
<string name="notification_channel_description">إشعارات Safe Paths</string> | ||
</resources> |
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<resources> | ||
<!-- Channel label for notifications shown in App > Notifications > Safe Paths --> | ||
<string name="notification_channel_description">Safe Paths notifikationer</string> | ||
</resources> |
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,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<resources> | ||
<!-- Channel label for notifications shown in App > Notifications > Safe Paths --> | ||
<string name="notification_channel_description">Gestisci tutte le notifiche locali</string> | ||
<string name="notification_channel_description">Notifiche Safe Paths</string> | ||
</resources> |
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<resources> | ||
<!-- Channel label for notifications shown in App > Notifications > Safe Paths --> | ||
<string name="notification_channel_description">Notícias Safe Paths</string> | ||
</resources> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,28 @@ | ||
import React from 'react'; | ||
|
||
import { Flag } from '../helpers/flags'; | ||
|
||
/** | ||
* Small wrapper around `<Flag />` which makes the default case easier: | ||
* | ||
* Usage: | ||
* | ||
* ``` | ||
* <Feature name="google_import" fallback={() => <hr />}> | ||
* <FeatureUi /> | ||
* </Feature> | ||
* ``` | ||
* | ||
* @param {{ | ||
* name: string; | ||
* fallback?: () => import('react').ReactNode; | ||
* children: import('react').ReactNode; | ||
* }} param0 | ||
*/ | ||
export const Feature = ({ name, fallback, children }) => { | ||
const keyPath = name.split('.'); | ||
|
||
return ( | ||
<Flag name={keyPath} render={() => children} fallbackRender={fallback} /> | ||
); | ||
}; |
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,43 @@ | ||
import styled from '@emotion/native'; | ||
import React from 'react'; | ||
import { SvgXml } from 'react-native-svg'; | ||
|
||
import { themeTextColor } from '../constants/themes'; | ||
|
||
/** | ||
* A theme aware icon button | ||
* | ||
* @param {{ | ||
* icon: SvgXml; | ||
* accessibilityLabel: string; | ||
* secondary?: boolean; | ||
* size?: number; | ||
* }} param0 | ||
*/ | ||
export const IconButton = ({ | ||
icon, | ||
accessibilityLabel, | ||
secondary, | ||
size, | ||
...otherProps | ||
}) => { | ||
return ( | ||
<Container accessibilityLabel={accessibilityLabel} {...otherProps}> | ||
<Icon | ||
xml={icon} | ||
secondary={secondary} | ||
width={size || 24} | ||
height={size || 24} | ||
/> | ||
</Container> | ||
); | ||
}; | ||
|
||
const Container = styled.TouchableOpacity` | ||
align-items: center; | ||
align-content: center; | ||
`; | ||
|
||
const Icon = styled(SvgXml)` | ||
color: ${themeTextColor}; | ||
`; |
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
Oops, something went wrong.