Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
Flutter App for Memri
Commits
43ce3ca6
Commit
43ce3ca6
authored
2 years ago
by
Erfan Jazeb Nikoo
Browse files
Options
Download
Email Patches
Plain Diff
bugfix/importers_bug_fix
Fixed the Gitlab issue
parent
7b52a1dc
Pipeline
#9628
passed with stages
in 4 minutes and 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/providers/oauth_provider.dart
+11
-6
lib/providers/oauth_provider.dart
pubspec.yaml
+1
-1
pubspec.yaml
with
12 additions
and
7 deletions
+12
-7
lib/providers/oauth_provider.dart
+
11
-
6
View file @
43ce3ca6
...
...
@@ -208,6 +208,7 @@ class OAuthProvider with ChangeNotifier {
_gitlabOAuthStream
=
_gitlabItemStream
();
_gitlabOAuthStreamSubscription
=
_gitlabOAuthStream
!.
listen
((
item
)
{
_gitlabOAuthItem
=
item
;
_gitlabUserExist
=
true
;
resetGitlabStream
();
notifyListeners
();
});
...
...
@@ -248,14 +249,18 @@ class OAuthProvider with ChangeNotifier {
Future
<
void
>
setGitlabTokens
()
async
{
_gitlabOAuthItem
??=
await
getOAuthItem
(
'gitlab'
);
var
accessToken
=
_gitlabOAuthItem
!.
get
(
'accessToken'
);
var
refreshToken
=
_gitlabOAuthItem
!.
get
(
'refreshToken'
);
if
(
_gitlabOAuthItem
!=
null
)
{
var
accessToken
=
_gitlabOAuthItem
!.
get
(
'accessToken'
);
var
refreshToken
=
_gitlabOAuthItem
!.
get
(
'refreshToken'
);
if
(
accessToken
!=
null
)
{
_gitlabService
.
setTokens
(
accessToken
,
refreshToken
);
_gitlabUserExist
=
true
;
if
(
accessToken
!=
null
)
{
_gitlabService
.
setTokens
(
accessToken
,
refreshToken
);
_gitlabUserExist
=
true
;
}
else
{
AppLogger
.
err
(
'Could not setup GitLab. Token is expired.'
);
}
}
else
{
AppLogger
.
err
(
'Could not setup G
it
L
ab
. Token is expired.'
)
;
_g
it
l
ab
UserExist
=
false
;
}
}
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
1
-
1
View file @
43ce3ca6
...
...
@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version
:
2.1.10+
0
version
:
2.1.10+
1
environment
:
sdk
:
"
>=2.12.0
<3.0.0"
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets