Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84e550f5 authored by Deepanshu Gupta's avatar Deepanshu Gupta
Browse files

Fix layoutlib tests.

The date picker and calendar widgets show the current date. Comparing
widgets showing current date with a static golden image wasn't the best
idea.

- Change the widgets to custom widgets that set a predefined date/time
  so that the rendering is independent of the system date.
- Change the layout slightly to make it look nicer.
- Update gradle plugin version.

Change-Id: Ia3fb4965a372a28087a0d8c9df40fd6779df6050
parent ada85905
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ buildscript {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.+'
        classpath 'com.android.tools.build:gradle:1.1.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
@@ -19,23 +19,21 @@ allprojects {
apply plugin: 'com.android.application'

android {
    compileSdkVersion 20
    buildToolsVersion '20'
    compileSdkVersion 21
    buildToolsVersion '21.1.2'
    defaultConfig {
        applicationId 'com.android.layoutlib.test.myapplication'
        minSdkVersion 19
        targetSdkVersion 20
        targetSdkVersion 21
        versionCode 1
        versionName '1.0'
    }
    buildTypes {
        release {
            runProguard false
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
}

dependencies {
+2 B (777 B)

File changed.

No diff preview for this file type.

+1.15 KiB

File added.

No diff preview for this file type.

+1.27 KiB

File added.

No diff preview for this file type.

(1.13 KiB)

File changed.

No diff preview for this file type.

Loading