Use GNU license on license screen
This commit is contained in:
+10
-3
@@ -1,15 +1,22 @@
|
||||
import React from 'react'
|
||||
import { ScrollView, View, BackHandler } from 'react-native'
|
||||
import Hyperlink from 'react-native-hyperlink'
|
||||
import AppText from './app-text'
|
||||
import { licenseText, shared } from '../i18n/en/labels'
|
||||
import { shared } from '../i18n/en/labels'
|
||||
import settingsLabels from '../i18n/en/settings'
|
||||
import styles,{secondaryColor} from '../styles'
|
||||
import Button from './button'
|
||||
import { saveLicenseFlag } from '../local-storage';
|
||||
import { saveLicenseFlag } from '../local-storage'
|
||||
import replace from './helpers/replace-url-with-text'
|
||||
|
||||
const labels = settingsLabels.license
|
||||
export default function License({setLicense}) {
|
||||
return (
|
||||
<ScrollView style={styles.licensePage}>
|
||||
<AppText>{licenseText}</AppText>
|
||||
<Hyperlink linkStyle={styles.link} linkText={replace}>
|
||||
<AppText style={styles.settingsSegmentTitle}>{labels.title}</AppText>
|
||||
<AppText>{labels.text}</AppText>
|
||||
</Hyperlink>
|
||||
<View style={styles.licenseButtons}>
|
||||
<Button
|
||||
style={styles.licenseButton}
|
||||
|
||||
@@ -117,5 +117,3 @@ export const fertilityStatus = {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export const licenseText = 'This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall copyright holders be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.'
|
||||
+1
-4
@@ -122,10 +122,7 @@ export default {
|
||||
title: 'drip is an open-source cycle tracking app',
|
||||
text: `Copyright (C) 2019 Bloody Health GbR
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
You can contact us by email at bloodyhealth@mailbox.com.`
|
||||
},
|
||||
|
||||
+3
-2
@@ -396,11 +396,12 @@ export default StyleSheet.create({
|
||||
},
|
||||
licensePage: {
|
||||
paddingVertical: 20,
|
||||
paddingHorizontal: 20
|
||||
paddingHorizontal: 10
|
||||
},
|
||||
licenseButtons: {
|
||||
flexDirection: 'row',
|
||||
justifyContent: 'flex-end'
|
||||
justifyContent: 'flex-end',
|
||||
marginTop: 40
|
||||
},
|
||||
licenseButton: {
|
||||
marginLeft: 30,
|
||||
|
||||
Reference in New Issue
Block a user