Skip to content

Commit b119afb

Browse files
Enable Spotless verification for Android Port and fix reporting
- Added `spotless-maven-plugin` to `maven/android/pom.xml` configured for `Ports/Android/src`. - Updated `scripts/build-android-port.sh` to run `spotless:check` and report results. - Applied Spotless formatting to existing Android port source code. - Protected sensitive lines in `AndroidImplementation.java` from formatting to prevent build server issues. - Updated quality reporting scripts to suppress missing report warnings and include Spotless results in the Android status comment. - Ensured CI fails if Spotless verification fails.
1 parent a00c62a commit b119afb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,9 +1127,9 @@ public void init(Object m) {
11271127
// an instance of the base PlayServices class. The Build Server will automatically
11281128
// swap this for the appropriate subclass depending on the playServicesVersion of
11291129
// the build.
1130-
PlayServices.setInstance(
1131-
new PlayServices()); // <---- DO NOT CHANGE - Build server will replace with appropriate
1132-
// subclass instance
1130+
// spotless:off
1131+
PlayServices.setInstance(new PlayServices()); // <---- DO NOT CHANGE - Build server will replace with appropriate subclass instance
1132+
// spotless:on
11331133
if (m instanceof CodenameOneActivity) {
11341134
setContext(null);
11351135
setActivity((CodenameOneActivity) m);

0 commit comments

Comments
 (0)