-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build 3 modifications to increase pub score
- Loading branch information
Patrick FINKELSTEIN
committed
Mar 7, 2019
1 parent
4eb189f
commit f5631dc
Showing
23 changed files
with
239 additions
and
451 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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# strava_flutter specific | ||
secret.dart | ||
todo.txt | ||
# temp | ||
starSegment.dart | ||
|
||
.DS_Store | ||
.dart_tool/ | ||
|
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
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,16 +1,8 @@ | ||
// Constants.dart | ||
|
||
|
||
|
||
|
||
final tokenEndpoint = "https://www.strava.com/oauth/token"; | ||
final authorizationEndpoint = "https://www.strava.com/oauth/authorize"; | ||
|
||
final clientID = '32212'; | ||
final clientId = '32212'; | ||
|
||
final String redirectUrl = "http://localhost:8080"; | ||
|
||
|
||
|
||
|
||
|
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,28 +1,26 @@ | ||
// globals.dart | ||
// globals.dart | ||
|
||
import 'package:flutter/foundation.dart'; | ||
|
||
import 'token.dart'; | ||
|
||
bool isInDebug = true; // set to true to see debug message in API | ||
bool isInDebug = true; // set to true to see debug message in API | ||
|
||
Token token = Token(); // Where the token info is stored when executing APIs | ||
Token token = Token(); // Where the token info is stored when executing APIs | ||
|
||
// To display debug info in Strava API | ||
void displayInfo(String message) { | ||
if (isInDebug) { | ||
var msgToDisplay = '--> Strava_flutter: ' + message; | ||
debugPrint(msgToDisplay); | ||
} | ||
|
||
if (isInDebug) { | ||
var msgToDisplay = '--> Strava_flutter: ' + message; | ||
debugPrint(msgToDisplay); | ||
} | ||
|
||
} | ||
|
||
Map<String, String> createHeader() { | ||
var _token = token; | ||
if (_token != null) { | ||
return {'Authorization': 'Bearer ${_token.accessToken}'}; | ||
} else { | ||
return {null: null}; | ||
} | ||
} | ||
var _token = token; | ||
if (_token != null) { | ||
return {'Authorization': 'Bearer ${_token.accessToken}'}; | ||
} else { | ||
return {null: null}; | ||
} | ||
} |
Oops, something went wrong.