aboutsummaryrefslogtreecommitdiff
path: root/testapp
AgeCommit message (Collapse)Author
2024-04-03Support for Robolectric's validatorRex Hoffman
Test: Build Bug: 323363698 Change-Id: I6ae79b352868d6abad12cb25649f2ffe45749e06
2024-04-03Merge remote-tracking branch 'aosp/upstream-google' into mergeRex Hoffman
Change-Id: If1ded0da6c081dd2c72e2ec28169255b23388103
2024-03-29Merge branch 'master' into 'google'Michael Hoisie
2024-03-29Disable FontValidation lint check in testapp's downloadable fontTim Peut
This is part of the effort to drop support for KitKat (API 19) in Robolectric. The specific error is: minSdkVersion=21 only app: attributes should be used [FontValidation] android:fontProviderAuthority="com.example.fontprovider.authority" PiperOrigin-RevId: 620176399
2024-03-14Remove unused properties from `AndroidManifest.xml` filesGaëtan Muller
These properties have moved to the corresponding `build.gradle` files
2024-02-01Baseline NewApi issuesCole Faust
NewApi is a lint check that you don't call framework methods that were introduced in versions later than your min_sdk_version. We want to make this an error, so we're baselineing all existing issues. This cl was generated automatically, by taking all the NewApi issues from the reference baselines, and all the non-NewApi issues from the existing checked in baselines. Bug: 268261262 Test: Presubmits Change-Id: Ic76c96b97b629bc2d3af6aba6be6bf90335a7006 Merged-In: Ic76c96b97b629bc2d3af6aba6be6bf90335a7006
2023-10-19Merge branch 'upstream-google' into merge_shadow_change3Ang Li
Test: (Both tested in `main`) atest -c SystemUIGoogleRoboRNGTests atest -c CtesqueRoboTests Change-Id: I823a9cbac4fdcb9ccba8f07bf452e1e4375ff96c
2023-10-17Increment targetSdk and compileSdk from 33 to 34 for integration tests.Brett Chabot
Now that Robolectric supports SDK 34, increment existing integration tests to target and compile against it. Also update targetSdkVersion in manifests from 16 to 19. This also required a couple additional changes: - use native graphics mode for androidx_test. With targetSdk 34, legacy graphics mode resulted in 0 width views - Specify an intent filter for androidx_test Activity. Otherwise IntentsTest will fail with 'No activities found', because the AppsFilter will block access to other apps. PiperOrigin-RevId: 574287184
2023-09-25Drop support for SDKs < 19.Brett Chabot
The intent is to stay consistent with the android ecosystem, as androidx has/will soon increment their overall minSdkVersion to 19. PiperOrigin-RevId: 568281650
2023-08-30Align external/robolectric code with mainKevin Liu
Using ReflectionHelpers for api that's different amoung branches. Test: mma && atest Bug: 293573045 Change-Id: I196890d37db450db2627ad9ed21ae9cf6863b039
2023-04-15Add namespace for android-library/application projectsutzcoz
It is prepared for AGP 8.x. Signed-off-by: utzcoz <utzcoz@outlook.com>
2022-09-18Bump compile/targetSdk to 33utzcoz
Signed-off-by: utzcoz <utzcoz@outlook.com>
2022-06-18Migrate *SdkVersion to *Sdkutzcoz
1. minSdkVersion -> minSdk 2. targetSdkVersion -> targetSdk Signed-off-by: utzcoz <utzcoz@outlook.com>
2022-04-19Migrate compileSdkVersion to compileSdkAkshay2131
2022-04-16removed targetSdk from Android manifest filesUmesh Singh
* removed targetSdk from androidx * removed targetSdk from androidx_test * removed targetSdk from ctesque * removed targetSdk from memoryleaks * removed targetSdk from testapp
2022-01-05Intercept native Font states at Java level for Android Sutzcoz
vt323_bold.ttf is copied from vt323_regular.ttf, and it is fine to use real reguar ttf as bold ttf for tests. Signed-off-by: utzcoz <utzcoz@outlook.com>
2021-06-25Move test activities from integration_tests/ctesque into testapphoisie
PiperOrigin-RevId: 380223479
2021-05-20Migrate obtainAttributes_shouldReturnValuesFromResources to ResourcesTestutzcoz
Signed-off-by: utzcoz <utzcoz@outlook.com>
2021-05-15Re-wrap ByteBuffer after UTF-8 decoding failedutzcoz
It will help to reset the string byte buffer state. Signed-off-by: utzcoz <utzcoz@outlook.com>
2021-05-15Add test case for mixed emoji and textutzcoz
Signed-off-by: utzcoz <utzcoz@outlook.com>
2021-05-09Add test to parse emoji from xmlutzcoz
Signed-off-by: utzcoz <utzcoz@outlook.com>
2021-04-01Bump testapp's compile and target sdk to 30utzcoz
Signed-off-by: utzcoz <utzcoz@outlook.com>
2020-03-26Remove minSdkVersion from AndroidManifest.xml's.Christian Williams
In current AGP, Gradle import fails if minSdkVersion is specified.
2019-10-14Re-introduce Support Android Q/API 29 final. (PR#5289)brettchabot
And make it an error to run on Q with an unsupported java version, instead of just silently skipping tests. PiperOrigin-RevId: 274723300
2019-10-11Rollback of:brettchabot
Support Android Q/API 29 final. (PR#5289) And make it an error to run on Q with an unsupported java version, instead of just silently skipping tests. PiperOrigin-RevId: 274229710
2019-10-11Support Android Q/API 29 final.Brett Chabot
And make it an error to run on Q with an unsupported java version, instead of just silently skipping tests.
2019-05-28Remove unused InnerActivity and its dependencies.Googler
R.java was updated via ./scripts/build-resources.sh PiperOrigin-RevId: 250361353
2019-05-22Some android_binary targets are now building with AAPT2.Googler
PiperOrigin-RevId: 249543904
2019-02-04AGP 3.4 complains about <adaptive-icon/> pre-26.Christian Williams
2019-01-03Support fonts defined in XML.romkal
PiperOrigin-RevId: 227759682
2018-12-18Attempt to reconcile PackageManagerTest differences between bazel and gradle.christianw
Note that the generated .ap_'s package name will be "org.robolectric.testapp" for bazel instrumentation tests, "org.robolectric.ctesque" for bazel Robolectric tests, and "org.robolectric.ctesque.test" for gradle Robolectric tests. :-( PiperOrigin-RevId: 226110366
2018-11-28Update compileSdkVersion + targetSdkVerison of testApp to 28jongerrish
Remove minSdkVersion from "com.android.library" projects as AGP complains when syncing. Apparently it expects these to be defined in the build.gradle files. PiperOrigin-RevId: 223263192
2018-11-20Some ctesque tests for packageManager that use components.romkal
PiperOrigin-RevId: 222353868
2018-11-12Make enabled and other flags in the manifest visible in the ComponentInfo ↵Brett Chabot
through getActivityInfo()/getServiceInfo()/.... PiperOrigin-RevId: 220299781
2018-11-11CTEsque ResourcesTest:Brett Chabot
Enable commented out getQuantityString() and fix expectations. Add getQuantityText() test - disabled for legacy mode, verifies https://github.com/robolectric/robolectric/issues/2288 on binary resource mode. Create dedicated build target for ResourcesTest in legacy mode (Gradle still runs tests in both modes so this prevents breakages submitted internally PiperOrigin-RevId: 219998098
2018-11-09Support loading fonts from res/font/*jongerrish
Fixes https://github.com/robolectric/robolectric/issues/3590 Note: Doesn't parse the font but none of the other font functionality does either. PiperOrigin-RevId: 219698405
2018-11-044075 - update android gradle plugin to 3.2.1Jared Burrows
2018-06-07Migrate to user modern gradle featuresGautam Korlam
2018-05-17Fix string HTML attributes in binary resources.brettchabot
PiperOrigin-RevId: 196895175
2018-05-17Internal changebrettchabot
PiperOrigin-RevId: 196153449
2018-03-08Merge remote-tracking branch 'origin/master' into arscChristian Williams
2018-03-06Added inflating test in ShadowLayoutInflaterTest.java to inflate a layout ↵Googler
reference that has multiple line. PiperOrigin-RevId: 187886090
2018-03-02Move some tests from ShadowActivityTest to ctesque.Christian Williams
2018-02-28Collapse internal whitespace down to single space character in stringjongerrish
resources. Add tests to show this matches real Android behaviour PiperOrigin-RevId: 187231535
2018-02-27Support resource references in AttributeSetBuilder-built XML files in legacy ↵Christian Williams
resources mode. Delete some tests that don't verify guaranteed platform behavior.
2018-02-21Project import generated by Copybara.Googler
PiperOrigin-RevId: 186520543
2018-02-20Create a new integration_tests module - CTesque designed to validatejongerrish
Robolectric behaviour against platform behaviour. Create initial application under test forked from the set of test resources in the robolectric module. Forking for now so as not to disturb the merging of the arsc branch. In the near future we will move all Shadow*Test tests to the testapp module. Create ResourcesTest based on a stripped down version of ShadowResourcesTest. Same with AssetManagerTest. These tests will not use any public Robolectric APIs, rather use the ATSL APIs to allow us to run these tests both on local host and a device. PiperOrigin-RevId: 186352510
2018-02-20Create/update copybara workflows for moving piper changes to githubbrettchabot
PiperOrigin-RevId: 186015890
2018-02-20Fix packagenameJonathan Gerrish
2018-02-20Strip down manifest.Jonathan Gerrish
This allows us to deploy the module onto a device without errors due to missing components.