Merge pull request #7 from Microsoft/scotts-sdkversion
Set min and target SDK versions
This commit is contained in:
Коммит
4e4183156f
|
@ -0,0 +1,17 @@
|
|||
language: android
|
||||
android:
|
||||
components:
|
||||
# use the latest revision of Android SDK Tools
|
||||
- tools
|
||||
- platform-tools
|
||||
|
||||
# The BuildTools version used by your project
|
||||
- build-tools-23.0.3
|
||||
|
||||
# The SDK version used to compile your project
|
||||
- android-23
|
||||
|
||||
# Additional components
|
||||
- extra-android-m2repository
|
||||
- extra-google-m2repository
|
||||
- extra-google-google_play_services
|
|
@ -2,12 +2,12 @@ apply plugin: 'com.android.application'
|
|||
|
||||
android {
|
||||
compileSdkVersion 23
|
||||
buildToolsVersion "23.0.2"
|
||||
buildToolsVersion "23.0.3"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "loop.ms.loophello"
|
||||
minSdkVersion 23
|
||||
targetSdkVersion 23
|
||||
minSdkVersion 15
|
||||
targetSdkVersion 22
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
|
@ -17,11 +17,21 @@ android {
|
|||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
lintOptions {
|
||||
// set to true to turn off analysis progress reporting by lint
|
||||
quiet false
|
||||
// if true, stop the gradle build if errors are found
|
||||
abortOnError true
|
||||
// if true, only report errors
|
||||
ignoreWarnings false
|
||||
// project specific lint options
|
||||
lintConfig new File(rootProject.projectDir, "lint.xml")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
testCompile 'junit:junit:4.12'
|
||||
compile 'com.android.support:appcompat-v7:23.4.0'
|
||||
compile 'ms.loop:loopsdk:2.0.1'
|
||||
compile('ms.loop:loopsdk:2.0.1') { changing = true }
|
||||
}
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="loop.ms.loophello">
|
||||
|
||||
<!-- Not visible to Google App indexer -->
|
||||
<!--suppress GoogleAppIndexingWarning -->
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:id="@+id/sendTestSignalBtn"
|
||||
android:text="Send test signal"
|
||||
android:text="@string/send_test_signal"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:background="#208DED"
|
||||
android:textColor="#fff"
|
||||
|
@ -42,7 +42,7 @@
|
|||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Test signal sent successfully"
|
||||
android:text="@string/test_signal_sent_successfully"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="@android:color/holo_green_dark"
|
||||
android:textSize="20sp"
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
<resources>
|
||||
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
|
||||
(such as screen margins) for screens with more than 820dp of available width. This
|
||||
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
|
||||
<dimen name="activity_horizontal_margin">64dp</dimen>
|
||||
</resources>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#3F51B5</color>
|
||||
<color name="colorPrimaryDark">#303F9F</color>
|
||||
<color name="colorAccent">#FF4081</color>
|
||||
</resources>
|
|
@ -1,5 +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>
|
|
@ -1,3 +1,5 @@
|
|||
<resources>
|
||||
<string name="app_name">Loop Hello</string>
|
||||
<string name="send_test_signal">Send test signal</string>
|
||||
<string name="test_signal_sent_successfully">Test signal sent successfully</string>
|
||||
</resources>
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
<lint>
|
||||
<issue id="InvalidPackage">
|
||||
<!-- due to an issue with okio, we need to exclude lint errors for it -->
|
||||
<!-- http://stackoverflow.com/questions/35492259/lint-error-on-okio -->
|
||||
<!-- https://github.com/square/okio/issues/58 -->
|
||||
<ignore regexp=".*okio.*" />
|
||||
|
||||
<!-- due to an issue with Apache Commons Math3, we need to exclude lint errors for it -->
|
||||
<ignore regexp="org.apache.commons.math3.*" />
|
||||
</issue>
|
||||
|
||||
<!-- Disable check for old api versions -->
|
||||
<issue id="OldTargetApi" severity="ignore" />
|
||||
|
||||
<!-- Disable check for old versions of Gradle dependencies -->
|
||||
<issue id="GradleDependency" severity="ignore" />
|
||||
|
||||
<!-- Disable check for 'center' attribute on API level 15 -->
|
||||
<issue id="UnusedAttribute" severity="ignore" />
|
||||
|
||||
<!-- Disable check for drawable density -->
|
||||
<issue id="IconLocation" severity="ignore" />
|
||||
|
||||
<!-- Disable check ImageView content description -->
|
||||
<issue id="ContentDescription" severity="ignore" />
|
||||
</lint>
|
Загрузка…
Ссылка в новой задаче