summaryrefslogtreecommitdiff
path: root/scripts/repackage-common.sh
AgeCommit message (Collapse)Author
2021-01-20Allow currysrc users to override srcgen and output directoriesDaulet Zhanguzin
Bug: 154796679 Test: run the generation with and without new parameters Change-Id: I9449d82d6aef14feef53c0049f5ac3ccc4ef6b8f
2020-06-12Update currysrc to support stable core/platform API.android-r-beta-3android-r-beta-2Pete Gillin
This change allows you to specify a flat file to add @CorePlatformApi(status=STABLE) to (previously it only supported bare @CorePlatformApi). This would have been possible using the JSON format before, but this would be more verbose and error-prone in the case (as with conscrypt) where the whole surface is stable. Test: external/conscrypt/srcgen/generate_android_src.sh (and check result) Bug: 157640067 Change-Id: Ie69e2805ed6c76cde395e48532236fdd31bb0c67
2019-12-10Use new UnsupportedAppUsage annotation.android-r-preview-1Artur Satayev
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I94f5016048f78f0be20bb1be7dcd495f797662bc
2019-09-19Restore TEST_MAPPING files removed during repackagingndk-sysroot-r21Paul Duffin
Running a script like external/conscrypt/srcgen/generate_android_src.sh removed the TEST_MAPPING files. This change restores them by checking them out of git. This does mean that if a TEST_MAPPING file has been edited that the changes will be lost. Test: external/conscrypt/srcgen/generate_android_src.sh Change-Id: Ifedff3823f14a7a098a677709bf1ce89b5a8c22d
2019-09-16Update repackage-common.sh to not use make.Cody Kesting
Currysrc can be used to repackage source files. The repackage-common.sh currently references 'make' in this process, which is now not supported by build/make/core/main.mk. Instead, build/soong needs to be used for this operation. Bug: 141146348 Test: make Change-Id: I468a7417fcac92f248bd395bb19d8bce46b5433c
2019-04-10Ignore comments in changelog checkandroid-q-preview-6android-q-preview-5android-q-preview-4android-q-preview-2.5Adam Vartanian
Test: manual test with file with comments Change-Id: Ib7000c1969b9a4d9725cdbd3fcca12ae956cde76
2019-03-05Add scripts/repackage-common.sh to improve update processPaul Duffin
This script makes it easier to use currysrc to repackage source files by removing the need for each repository to create its own custom script for invoking currysrc. Instead they simply have to specify a few fields, include this script to do the repackaging, and then, if necessary do any post repackaging cleanup. This script also checks that every change that it requested to be made is actually made and fails otherwise. This ensures that an update does not accidentally remove a method that is part of the hiddenapi and which could cause app compatibility issues. Bug: 119243026 Test: external/libphonenumber/srcgen/generate_android_src.sh Change-Id: Ib60d6e035e65d99ff5b90e35e9a4aff43023311b