Skip to content

Conversation

@caitlinrussell
Copy link

There are currently a list of files we manually track when we regenerate the Android SDK that have to be hand-merged. Moving this code into the generator allows us to automate this process.

I have added methods for adding import statements, methods, and overwriting code. These are currently only implemented on the templates that require them.

Each of these methods takes advantage of CodeHelper classes that define the update contents to be made to each file, in accordance with the field's name. This allows us to "automagically" iterate through and apply rules to templates without hardcoding which templates to use in the BaseModel template file.

Caitlin Bales (MSFT) added 6 commits July 27, 2017 14:02
Prevents developer from having to manually overwrite:
- DriveItemRequestBuilder
- IDriveItemReqestBuilder
- ThumbnailSetRequestBuilder
- IThumbnailSetRequestBuilder
Fixes manual addition of custom import statement for:
- UploadSession
Fixes manual copying of files:
- ChunkedUploadRequest
- ChunkedUploadResult
Fixes manual editing of methods:
- BaseOnenotePageCollectionRequest
- IBaseOnenotePageCollectionRequest
- BaseOnenotePageRequest
- IBaseOnenotePageRequest
@caitlinrussell
Copy link
Author

There are also two files (ChunkedUploadRequest and ChunkedUploadResult) that need to be generated verbatim each time the generator is run. They are not described by the metadata.

@caitlinrussell caitlinrussell merged commit 17442ce into master Aug 8, 2017
@caitlinrussell caitlinrussell deleted the android-custom-file-updates branch August 8, 2017 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants