Fixed lint warnings.
This commit is contained in:
parent
87ad67ca82
commit
357fc5e2f1
4 changed files with 20 additions and 12 deletions
12
build.gradle
12
build.gradle
|
@ -20,14 +20,21 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.android.support:appcompat-v7:18.0.+'
|
||||
compile 'com.android.support:mediarouter-v7:18.0.+'
|
||||
compile 'com.android.support:appcompat-v7:19.1.+'
|
||||
compile 'com.android.support:mediarouter-v7:19.1.+'
|
||||
compile 'org.teleal.cling:cling-core:1.0.5+'
|
||||
compile 'org.teleal.cling:cling-support:1.0.5+'
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 19
|
||||
buildToolsVersion "19.0.3"
|
||||
|
||||
// Caused by cling, because they apparently include APIs for other platforms.
|
||||
lintOptions {
|
||||
disable 'InvalidPackage'
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
release {
|
||||
// Android Studio does not pass environment variables.
|
||||
|
@ -50,4 +57,5 @@ android {
|
|||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.github.nutomic.controldlna"
|
||||
android:versionCode="14"
|
||||
android:versionName="1.0.2" >
|
||||
android:versionName="1.0.2"
|
||||
tools:ignore="ExportedService" >
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
|
||||
|
@ -54,14 +56,15 @@
|
|||
|
||||
<service android:name=".upnp.ProviderService"
|
||||
android:label="@string/upnp_route_provider_service"
|
||||
android:process=":mrp">
|
||||
android:process=":mrp" >
|
||||
<intent-filter>
|
||||
<action android:name="android.media.MediaRouteProviderService" />
|
||||
</intent-filter>
|
||||
</service>
|
||||
|
||||
<service android:name=".localroute.ProviderService"
|
||||
android:process=":mrp">
|
||||
android:label="@string/local_device"
|
||||
android:process=":mrp" >
|
||||
<intent-filter>
|
||||
<action android:name="android.media.MediaRouteProviderService" />
|
||||
</intent-filter>
|
||||
|
|
|
@ -27,6 +27,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
package com.github.nutomic.controldlna.gui;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.net.Uri;
|
||||
|
@ -54,8 +55,11 @@ public class PreferencesActivity extends PreferenceActivity
|
|||
|
||||
/**
|
||||
* Initializes preferences from xml.
|
||||
*
|
||||
* Manual target API as we manually check if ActionBar is available (for ActionBar back button).
|
||||
*/
|
||||
@Override
|
||||
@TargetApi(11)
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
<resources>
|
||||
|
||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||
|
||||
</resources>
|
Reference in a new issue