mirror of
https://github.com/russok/FitoTrack.git
synced 2025-10-29 00:32:11 -07:00
Fix Build Issues
This commit is contained in:
parent
285b76c5d8
commit
a06a9ec30a
@ -80,9 +80,7 @@ dependencies {
|
|||||||
implementation ('de.westnordost:osmapi-traces:1.0')
|
implementation ('de.westnordost:osmapi-traces:1.0')
|
||||||
configurations {
|
configurations {
|
||||||
compile.exclude group: 'net.sf.kxml', module: 'kxml2' // already included in Android
|
compile.exclude group: 'net.sf.kxml', module: 'kxml2' // already included in Android
|
||||||
compile.exclude module: 'httpclient'
|
|
||||||
}
|
}
|
||||||
implementation 'oauth.signpost:signpost-commonshttp4:1.2.1.2'
|
|
||||||
|
|
||||||
// Android Room Database
|
// Android Room Database
|
||||||
def room_version = "2.2.0"
|
def room_version = "2.2.0"
|
||||||
|
|||||||
@ -21,8 +21,8 @@ package de.tadris.fitness.osm;
|
|||||||
|
|
||||||
import oauth.signpost.OAuthConsumer;
|
import oauth.signpost.OAuthConsumer;
|
||||||
import oauth.signpost.OAuthProvider;
|
import oauth.signpost.OAuthProvider;
|
||||||
import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer;
|
import oauth.signpost.basic.DefaultOAuthConsumer;
|
||||||
import oauth.signpost.commonshttp.CommonsHttpOAuthProvider;
|
import oauth.signpost.basic.DefaultOAuthProvider;
|
||||||
|
|
||||||
public class OAuthUrlProvider {
|
public class OAuthUrlProvider {
|
||||||
|
|
||||||
@ -30,11 +30,11 @@ public class OAuthUrlProvider {
|
|||||||
static private final String CONSUMER_SECRET= "oH969vYW60fZLco6E09UQl3uFXqjl4siQbOL0q9q";
|
static private final String CONSUMER_SECRET= "oH969vYW60fZLco6E09UQl3uFXqjl4siQbOL0q9q";
|
||||||
|
|
||||||
static OAuthConsumer getDefaultConsumer(){
|
static OAuthConsumer getDefaultConsumer(){
|
||||||
return new CommonsHttpOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET);
|
return new DefaultOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET);
|
||||||
}
|
}
|
||||||
|
|
||||||
static OAuthProvider getDefaultProvider(){
|
static OAuthProvider getDefaultProvider(){
|
||||||
return new CommonsHttpOAuthProvider(URL_TOKEN_REQUEST, URL_TOKEN_ACCESS, URL_AUTHORIZE);
|
return new DefaultOAuthProvider(URL_TOKEN_REQUEST, URL_TOKEN_ACCESS, URL_AUTHORIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static private final String URL_TOKEN_REQUEST= "https://www.openstreetmap.org/oauth/request_token";
|
static private final String URL_TOKEN_REQUEST= "https://www.openstreetmap.org/oauth/request_token";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user