summaryrefslogtreecommitdiff
path: root/PREUPLOAD.cfg
AgeCommit message (Collapse)Author
2024-06-13Use ktfmt.sh wrapper for ktfmt hook Jordan Demeulenaere
This CL makes the ktfmt hook use the bash wrapper introduced in ag/I8746885396c7837a2a6b2a42dca780da290ed582 instead of directly executing the ktfmt.jar, now that gLinux is not able to execute JAR files directly anymore. Bug: 342153000 Test: Manual, verified that the ktfmt hook was working Flag: EXEMPT repo hook Change-Id: Idc3e5b84910400af6a743f193183f1e090b0e9c1
2024-05-29Replace ktfmt.py hook by built-in hook in IntentResolver/ Jordan Demeulenaere
This CL replaces the ktfmt.py hook of this repository by the builtin ktfmt hook. This will allow to delete our custom hook and provide features like automatic fixup (see http://screen/5uXuuPgs7oL83c2). Note that this also means that this CL is upgrading ktfmt from v0.43 to v0.49, so it is expected to see some minor formatting diffs on existing files after this CL is submitted. Bug: 342153000 Test: N/A Flag: NONE Repohook Update Change-Id: I340e39ca307247806d25d8da11b3af96ee4d431a
2023-09-18Remove unused native code check rules Mark Renouf
There is no native code in this project. Bug: n/a Test: n/a Change-Id: I938218c2aa308014e4ec9aea6143795918c4432d
2023-05-02Adds ktfmt and ktlint hooks. Mark Renouf
Test: repo upload Bug: n/a Change-Id: I32f3461f39e8372c1dacfad0bcfa286d485ad0c2
2021-11-08Preliminary "delegate chooser" unbundling. Joshua Trask
Migrate the "delegate chooser" activity from SysUI to the new Sharesheet (IntentResolver) package. Set up basic project structure, tests, etc. This CL involves a lot of unfamiliar boilerplate that I've tried to copy from neighboring projects. Please feel free to recommend additional reviewers for any complexities I may have overlooked. The rest of this CL description will detail: 1. Unbundling/"delegate chooser" background 2. Scope: what's included in this change 3. Scope: what's not included in this change 4. Key considerations for code reviewers [1. Unbundling/"delegate chooser" background] The "delegate chooser" activity will eventually replace the system `ChooserActivity` as the new "unbundled" Sharesheet implementation. In order to validate the new architecture, an earlier exploration added a "trampoline" chooser implementation in SysUI. This implementation presents no UI of its own, but instead handles the fulfillment of the user's selection from the system Sharesheet. In upcoming experiments, we expect to have the unbundled implementation replicate the original UI of the system `ChooserActivity` so that the new version can take over earlier in the flow, and ultimately replace the system implementation altogether. For more information, see go/sharesheet-unbundling. [2. Scope: what's included in this change] This CL replicates SysUI's "trampoline" delegate implementation into the newly-created directory for the unbundled module. The main purpose of this CL is to set up the basic boilerplate in that directory (owners, etc). I stopped at the first meaningful milestone that I could confirm worked correctly -- the unbundled unit tests pass with atest. Note that (other than the package names) the Java code itself is unchanged from the earlier SysUI implementation. [3. Scope: what's not included in this change] Before the longer-term improvements outlined in go/sharesheet-unbundling, there are a few fundamental unbundling steps that are remaining after this CL. They were omitted in this first pass since we already have a working milestone and intend to focus the current review on project/directory boilerplate. Specifically: A. There is no experiment that would cause users to exercise the new delegation path (b/202166034). If there are any issues with the implementation at this point, we wouldn't expect them to be visible to users. B. There may(?) be other steps required to integrate the new "unbundled" module into the Android build (e.g. makepush?). This CL is sufficient to run the unit tests in the new unbundled directory, but no manual testing was done to confirm the end-user behavior. C. This doesn't include any APEX boilerplate (manifests, keys). That may not be important yet since we don't have any immediate plans to launch as a mainline module, or it may come up as part of doing the integration work for (B). D. The old SysUI delegate implementation is left in tact, but should be cleaned up as we switch over to the new architecture. [4. Key considerations for code reviewers] This change is mostly boilerplate cribbed from neighboring projects. Following is a short list of decisions I made that could deserve a second look: A. The package name: com.android.intentresolver B. (omitted for lint, but this was resolved in a discussion with OSPO) C. The versioning scheme. I used a YYYY-MM versionName as in ExtServices, but for now just have versionCode="0" until we have a numeric scheme. D. AndroidManifest attributes, mostly copied from SysUI. E. SDK versions / "platform_apis" attribute. I had to try a few things to get this working. It seems OK now, but there may be a better/more elegant approach. If we do need to support specific earlier versions, we should confirm that those versions had the startActivityAsCaller API available. Either way, there's some cruft in this CL that should be cleaned up once we confirm the approach. Bug: 202164690, 202165476 Test: `atest IntentResolverUnitTests` Change-Id: If53eee98ac92685810bbb84feb9cb1030a161502