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

Commit c318f0b4 authored by Diego Perez's avatar Diego Perez
Browse files

More layoutlib testing infra fixes

- Remove ModuleClassLoader as it can be replaced with a URLClassLoader
  for now.
- Move CustomCalendar and CustomDate to a separate package that can be
  used both by the Bridge tests and the actual test app.
- Move empty.xml out of the test app so it compiles.
- Update test app to use the latest build tools and SDK (some attributes
  being used by the app weren't supported in API 21).
- Update gitignore to remove the new out directory.

Test: Update to existing tests
Change-Id: Ieb7324d5ae559f9c581771c57f2127cd83909015
parent 063f75d6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
bin
/.idea/workspace.xml
/out
/bridge/out
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
      <sourceFolder url="file://$MODULE_DIR$/tests/res" type="java-test-resource" />
      <sourceFolder url="file://$MODULE_DIR$/tests/src" isTestSource="true" />
      <sourceFolder url="file://$MODULE_DIR$/tests/res/testApp/MyApplication/src/main/myapplication.widgets" isTestSource="true" />
      <excludeFolder url="file://$MODULE_DIR$/.settings" />
      <excludeFolder url="file://$MODULE_DIR$/bin" />
      <excludeFolder url="file://$MODULE_DIR$/tests/res/testApp/MyApplication/.gradle" />
+0 −0

Empty file added.

+6 −3
Original line number Diff line number Diff line
@@ -19,12 +19,12 @@ allprojects {
apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion '21.1.2'
    compileSdkVersion 25
    buildToolsVersion '25.0.0'
    defaultConfig {
        applicationId 'com.android.layoutlib.test.myapplication'
        minSdkVersion 21
        targetSdkVersion 22
        targetSdkVersion 25
        versionCode 1
        versionName '1.0'
    }
@@ -34,6 +34,9 @@ android {
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    lintOptions {
        abortOnError false
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_6
        targetCompatibility JavaVersion.VERSION_1_6
+32 B (2.29 KiB)

File changed.

No diff preview for this file type.

Loading