File tree Expand file tree Collapse file tree
java/io/github/inflationx/viewpump/sample Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ language : android
2+
3+ jdk : oraclejdk8
4+
5+ android :
6+ components :
7+ - tools
8+ - android-25
9+ - build-tools-25.0.2
10+ - platform-tools
11+ - extra-android-m2repository
12+
13+ cache :
14+ directories :
15+ - $HOME/.gradle
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ apply plugin: 'com.android.application'
22
33android {
44 compileSdkVersion 25
5- buildToolsVersion " 25.0.1 "
5+ buildToolsVersion " 25.0.2 "
66
77 defaultConfig {
88 minSdkVersion 14
9- targetSdkVersion 24
9+ targetSdkVersion 25
1010 versionCode project. ext. versionCodeInt
1111 versionName version
1212 }
@@ -23,18 +23,20 @@ android {
2323 }
2424
2525 lintOptions {
26- disable ' AppCompatCustomView'
26+ // we don't need to be indexed by firebase and we don't have a custom icon for our sample app
27+ disable ' GoogleAppIndexingWarning' , ' MissingApplicationIcon'
28+ textOutput ' stdout'
29+ textReport System . getenv(' CI' ) == ' true'
2730 }
2831}
2932
3033dependencies {
3134 compile project(' :viewpump' )
32- compile ' com.android.support:support-v4:25.0.1 '
33- compile ' com.android.support:appcompat-v7:25.0.1 '
35+ compile ' com.android.support:support-v4:25.3.0 '
36+ compile ' com.android.support:appcompat-v7:25.3.0 '
3437
3538 compile ' com.jakewharton:butterknife:8.2.1'
3639
37- // debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
38- debugCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
39- releaseCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
40+ debugCompile ' com.squareup.leakcanary:leakcanary-android:1.5'
41+ releaseCompile ' com.squareup.leakcanary:leakcanary-android-no-op:1.5'
4042}
Original file line number Diff line number Diff line change 55
66 <application
77 android : name =" io.github.inflationx.viewpump.sample.ViewPumpApplication"
8- android : allowBackup =" true "
8+ android : allowBackup =" false "
99 android : label =" @string/app_name"
1010 android : theme =" @style/AppTheme" >
1111 <activity
Original file line number Diff line number Diff line change 11package io .github .inflationx .viewpump .sample ;
22
3+ import android .annotation .SuppressLint ;
34import android .content .Context ;
45import android .util .AttributeSet ;
56import android .widget .TextView ;
67
8+ @ SuppressLint ("AppCompatCustomView" )
79public class CustomTextView extends TextView {
810
911 public CustomTextView (Context context ) {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public InflateResult intercept(Chain chain) {
2525 if (text .toString ().startsWith ("\n " )) {
2626 text = text .toString ().substring (1 );
2727 }
28- textView .setText (" \n [CustomTextView] " + text );
28+ textView .setText (textView . getContext (). getString ( R . string . custom_textview_prefixed_text , text ) );
2929 }
3030 } finally {
3131 if (a != null ) {
Original file line number Diff line number Diff line change 1010 android : id =" @+id/toolbar"
1111 android : layout_width =" match_parent"
1212 android : layout_height =" wrap_content"
13- android : background =" @color/primary_material_light "
13+ android : background =" #f5f5f5 "
1414 android : minHeight =" ?attr/actionBarSize"
15- android : translationZ =" 4dp"
1615 android : theme =" @style/ThemeOverlay.AppCompat.Light" />
1716
1817 <LinearLayout
Load diff This file was deleted.
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<resources >
33 <string name =" app_name" >ViewPump</string >
4- <string name =" regular_textview " >This is a regular TextView </string >
4+ <string name =" custom_textview_prefixed_text " >\n[CustomTextView] %s </string >
55 <string name =" regular_button" >This is a regular Button</string >
6+ <string name =" regular_textview" >This is a regular TextView</string >
67</resources >
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-3.4.1-bin .zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-3.4.1-all .zip
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22
33android {
44 compileSdkVersion 25
5- buildToolsVersion " 25.0.1 "
5+ buildToolsVersion " 25.0.2 "
66
77 defaultConfig {
88 minSdkVersion 14
@@ -18,6 +18,13 @@ android {
1818 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' consumer-proguard-rules.pro'
1919 }
2020 }
21+
22+ lintOptions {
23+ // we don't always want to use the latest version of the support library
24+ disable ' GradleDependency'
25+ textOutput ' stdout'
26+ textReport System . getenv(' CI' ) == ' true'
27+ }
2128}
2229
2330dependencies {
You can’t perform that action at this time.
0 commit comments