Update to newer version of cling, fixes #5
This commit is contained in:
parent
7a33b529e0
commit
4e3dc8980b
3 changed files with 7 additions and 7 deletions
|
@ -4,7 +4,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:1.2.2'
|
classpath 'com.android.tools.build:gradle:2.3.1'
|
||||||
classpath 'com.alexvasilkov:android_sign:0.2'
|
classpath 'com.alexvasilkov:android_sign:0.2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,8 @@ repositories {
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.android.support:appcompat-v7:19.1.+'
|
compile 'com.android.support:appcompat-v7:19.1.+'
|
||||||
compile 'com.android.support:mediarouter-v7:19.1.+'
|
compile 'com.android.support:mediarouter-v7:19.1.+'
|
||||||
compile 'org.fourthline.cling:cling-core:2.1.0'
|
compile 'org.fourthline.cling:cling-core:2.1.1'
|
||||||
compile 'org.fourthline.cling:cling-support:2.1.0'
|
compile 'org.fourthline.cling:cling-support:2.1.1'
|
||||||
compile 'org.eclipse.jetty:jetty-server:8.1.8.v20121106'
|
compile 'org.eclipse.jetty:jetty-server:8.1.8.v20121106'
|
||||||
compile 'org.eclipse.jetty:jetty-servlet:8.1.8.v20121106'
|
compile 'org.eclipse.jetty:jetty-servlet:8.1.8.v20121106'
|
||||||
compile 'org.eclipse.jetty:jetty-client:8.1.8.v20121106'
|
compile 'org.eclipse.jetty:jetty-client:8.1.8.v20121106'
|
||||||
|
@ -32,7 +32,7 @@ dependencies {
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 19
|
compileSdkVersion 19
|
||||||
buildToolsVersion "19.1.0"
|
buildToolsVersion '25.0.0'
|
||||||
|
|
||||||
// Caused by cling, because they apparently include APIs for other platforms.
|
// Caused by cling, because they apparently include APIs for other platforms.
|
||||||
lintOptions {
|
lintOptions {
|
||||||
|
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,6 +1,6 @@
|
||||||
#Sun May 03 22:20:30 BST 2015
|
#Sun Jun 11 12:46:47 BST 2017
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
|
||||||
|
|
|
@ -134,7 +134,7 @@ public class MainActivity extends ActionBarActivity {
|
||||||
.setText(R.string.title_route)
|
.setText(R.string.title_route)
|
||||||
.setTabListener(tabListener));
|
.setTabListener(tabListener));
|
||||||
|
|
||||||
final WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
|
final WifiManager wifi = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE);
|
||||||
if (!wifi.isWifiEnabled()) {
|
if (!wifi.isWifiEnabled()) {
|
||||||
String value = PreferenceManager.getDefaultSharedPreferences(this)
|
String value = PreferenceManager.getDefaultSharedPreferences(this)
|
||||||
.getString(PreferencesActivity.KEY_ENABLE_WIFI_ON_START, "ask");
|
.getString(PreferencesActivity.KEY_ENABLE_WIFI_ON_START, "ask");
|
||||||
|
|
Reference in a new issue