Skip to content

Conversation

@Sgkhour
Copy link
Contributor

@Sgkhour Sgkhour commented Jul 28, 2020

corrected the usLetter page height and usLedger page width to reflect 11inx72dpi
closes #225

Sgkhour and others added 2 commits July 28, 2020 09:26
corrected the usLetter page height and usLedger page width to reflect 11inx72dpi
@philprime
Copy link
Member

Can you please rebase your branch on the newest develop? I fixed a file reference, so that the unit tests can run again

Sgkhour added 4 commits July 30, 2020 15:11
corrected the usLetter page height and usLedger page width to reflect 11inx72dpi
corrected the usLetter page height and usLedger page width to reflect 11inx72dpi
@Sgkhour
Copy link
Contributor Author

Sgkhour commented Jul 30, 2020

i am afraid there might be something i am not doing right since it seems the continuous integration test keeps failing. i've relied on googling how to do a rebase but maybe that isn't the right way to do it :(

@philprime
Copy link
Member

No, it's alright, you just need to fix the Unit Tests.
They lock down the formats, but as you have changed the format, you also need to change the tests.

Open "TPPDF.xcodeproj" in the root, and you should be able to run the tests from

/* End PBXAggregateTarget section */

/* Begin PBXBuildFile section */
D477C4C224C45C780097C2AB /* PDFTableCalculatedCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = D477C4C124C45C780097C2AB /* PDFTableCalculatedCell.swift */; };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert removing this, this will exclude the file from the project

/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
D477C4C124C45C780097C2AB /* PDFTableCalculatedCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PDFTableCalculatedCell.swift; sourceTree = "<group>"; };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

D4803C3724703E5300DDA039 /* Table */ = {
isa = PBXGroup;
children = (
D477C4C124C45C780097C2AB /* PDFTableCalculatedCell.swift */,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

D4803D1424703E5300DDA039 /* PDFPageLayout.swift in Sources */,
D4803D2024703E5300DDA039 /* PDFTableCellStyle.swift in Sources */,
D4803CFF24703E5300DDA039 /* PDFGenerator+Generation.swift in Sources */,
D477C4C224C45C780097C2AB /* PDFTableCalculatedCell.swift in Sources */,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Sgkhour added 3 commits August 1, 2020 14:53
reinstate file in unit tests
fixed Pagefornat test definition to the correct usLetter page size
@Sgkhour
Copy link
Contributor Author

Sgkhour commented Aug 1, 2020

thank you for your help.. it turns out i also had to update the test file PDFPageFormat+SizeConstant_Spec.swift with the updated usLetter size info

thanks for your help...
Sami

@philprime
Copy link
Member

Thanks for the changes, can you please undo the changes in the project.pbxproj I commented above, so I can merge the branch afterwards?

@Sgkhour
Copy link
Contributor Author

Sgkhour commented Aug 5, 2020

Philip... if i put those lines back in TPPDF.xcodeproj/project.pbxproj in the develop branch, then the checks fail ... with the error
❌ error: Build input file cannot be found: '/Users/travis/build/techprimate/TPPDF/Source/Internal/Table/PDFTableCalculatedCell.swift' (in target 'TPPDF' from project 'TPPDF')

if i remove them from the project file, then all the test pass. what am i doing wrong ? for now, the lines are back in...

@philprime
Copy link
Member

Alright, I don't get it why it is failing, as the develop branch itself is working (maybe you forked after I fixed that issue).
Doesn't matter, the changes should be fine, so I will merge and close this.

Thanks for your contribution

@philprime philprime merged commit 1788c73 into techprimate:develop Aug 6, 2020
@Sgkhour Sgkhour deleted the develop branch August 24, 2020 00:49
philprime pushed a commit that referenced this pull request Sep 23, 2020
* Added macOS compatibility to tests (#224)
* Fixed missing file ref
* #225: Fixing incorrect US page size (#226)
Corrected the usLetter page height and usLedger page width to reflect 11inx72dpi
* Fixed missing file ref
* Updated changelog

Co-authored-by: Sami Khoury <[email protected]>
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.

2 participants