Fixed lint warnings.

This commit is contained in:
Felix Ableitner 2014-05-14 23:27:20 +02:00
parent 87ad67ca82
commit 357fc5e2f1
4 changed files with 20 additions and 12 deletions

View file

@ -20,14 +20,21 @@ repositories {
} }
dependencies { dependencies {
compile 'com.android.support:appcompat-v7:18.0.+' compile 'com.android.support:appcompat-v7:19.1.+'
compile 'com.android.support:mediarouter-v7:18.0.+' compile 'com.android.support:mediarouter-v7:19.1.+'
compile 'org.teleal.cling:cling-core:1.0.5+' compile 'org.teleal.cling:cling-core:1.0.5+'
compile 'org.teleal.cling:cling-support:1.0.5+' compile 'org.teleal.cling:cling-support:1.0.5+'
} }
android { android {
compileSdkVersion 19 compileSdkVersion 19
buildToolsVersion "19.0.3" buildToolsVersion "19.0.3"
// Caused by cling, because they apparently include APIs for other platforms.
lintOptions {
disable 'InvalidPackage'
}
signingConfigs { signingConfigs {
release { release {
// Android Studio does not pass environment variables. // Android Studio does not pass environment variables.
@ -50,4 +57,5 @@ android {
signingConfig signingConfigs.release signingConfig signingConfigs.release
} }
} }
} }

View file

@ -1,8 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.github.nutomic.controldlna" package="com.github.nutomic.controldlna"
android:versionCode="14" 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.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
@ -54,14 +56,15 @@
<service android:name=".upnp.ProviderService" <service android:name=".upnp.ProviderService"
android:label="@string/upnp_route_provider_service" android:label="@string/upnp_route_provider_service"
android:process=":mrp"> android:process=":mrp" >
<intent-filter> <intent-filter>
<action android:name="android.media.MediaRouteProviderService" /> <action android:name="android.media.MediaRouteProviderService" />
</intent-filter> </intent-filter>
</service> </service>
<service android:name=".localroute.ProviderService" <service android:name=".localroute.ProviderService"
android:process=":mrp"> android:label="@string/local_device"
android:process=":mrp" >
<intent-filter> <intent-filter>
<action android:name="android.media.MediaRouteProviderService" /> <action android:name="android.media.MediaRouteProviderService" />
</intent-filter> </intent-filter>

View file

@ -27,6 +27,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package com.github.nutomic.controldlna.gui; package com.github.nutomic.controldlna.gui;
import android.annotation.TargetApi;
import android.content.Intent; import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.net.Uri; import android.net.Uri;
@ -54,8 +55,11 @@ public class PreferencesActivity extends PreferenceActivity
/** /**
* Initializes preferences from xml. * Initializes preferences from xml.
*
* Manual target API as we manually check if ActionBar is available (for ActionBar back button).
*/ */
@Override @Override
@TargetApi(11)
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);

View file

@ -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>