Ali Akdurak
Ali Akdurak

Reputation: 4131

Android program with unused Swing code inside

I am designing a new software which is going to be Swing based Java application. I am currently completely decoupled the GUI layer and business layer hoping to porting my application to Android someday. When I am porting it to Android I am planing to just write a new inheritance to my GUIAbstractFactory.

Will Android API build my code base which has unused Swing dependencies or I will be forced to delete those classes who reference Swing?

Upvotes: 2

Views: 87

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168825

It should compile fine so long as the rt.jar of a J2SE is on the compilation class-path.

Upvotes: 3

Related Questions