Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
parity-signer
Commits
5cd670e3
Commit
5cd670e3
authored
Jul 25, 2019
by
Thibaut Sardan
Browse files
fix(): typo and more cleanups
parent
4387bcf3
Changes
3
Hide whitespace changes
Inline
Side-by-side
android/app/src/main/AndroidManifest.xml
View file @
5cd670e3
...
...
@@ -2,7 +2,6 @@
xmlns:tools=
"http://schemas.android.com/tools"
package=
"io.parity.signer"
>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.SYSTEM_ALERT_WINDOW"
/>
<uses-permission
android:name=
"android.permission.CAMERA"
/>
...
...
src/screens/Security.js
View file @
5cd670e3
...
...
@@ -32,9 +32,9 @@ export default class Security extends React.PureComponent {
<
Text
style
=
{
styles
.
cardText
}
>
NOT
SECURE
<
/Text
>
<
/View
>
<
Text
style
=
{
styles
.
text
}
>
A
device
is
considered
not
secure
if
it
has
access
to
the
internet
or
has
any
kin
g
of
connectivity
enabled
.
Parity
Signer
is
meant
to
be
used
on
a
device
that
will
be
kept
offline
any
time
.
Enabling
any
kind
of
connectivity
,
such
as
W
ifi
,
C
ellular
,
B
luetooth
,
NFC
,
USB
is
a
threat
to
the
safety
of
the
private
keys
stored
on
the
device
.
A
device
is
considered
not
secure
if
it
has
access
to
the
internet
or
has
any
kin
d
of
connectivity
enabled
.
Parity
Signer
is
meant
to
be
used
on
a
device
that
will
be
kept
offline
at
any
time
.
Enabling
any
connectivity
such
as
w
ifi
,
c
ellular
network
,
b
luetooth
,
NFC
,
usb
is
a
threat
to
the
safety
of
the
private
keys
stored
on
the
device
.
<
/Text
>
<
/ScrollView
>
);
...
...
src/stores/SecurityStore.js
deleted
100644 → 0
View file @
4387bcf3
// Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Parity 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.
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
// @flow
import
NetInfo
from
'
@react-native-community/netinfo
'
;
import
{
Container
}
from
'
unstated
'
;
export
default
class
SecurityStore
extends
Container
{
state
=
{
isConnected
:
false
};
constructor
(...
args
)
{
super
(...
args
);
// Subscribe
const
unsubscribe
=
NetInfo
.
addEventListener
(
state
=>
{
this
.
setState
({
isConnected
:
state
.
isConnected
});
});
}
componentWillUnmount
()
{
// Unsubscribe
// this.unsubscribe();
}
isConnected
()
{
return
this
.
state
.
isConnected
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment