Closed Bug 1338673 Opened 8 years ago Closed 7 years ago

Implement GeckoActivityStatus in FxAccountStatusActivity

Categories

(Firefox for Android Graveyard :: Settings and Preferences, defect)

All
Android
defect
Not set
normal

Tracking

(firefox54 affected)

RESOLVED INVALID
Tracking Status
firefox54 --- affected

People

(Reporter: JanH, Assigned: JanH)

References

Details

Attachments

(2 obsolete files)

Compare the failed attempt from bug 1336734 (https://reviewboard.mozilla.org/r/110172/diff/2/). This requires either some sort of modification to our build system, so the compiler can find GeckoActivityStatus and GeckoApplication (which live in android/base) when building the FxAccountStatusActivity (which lives under android/services), or else us completely switching over to Gradle builds, where this "just works".
This is do-able, but not trivial. There are examples of sharing pieces in the tree; see https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/moz.build?q=path%3Aandroid%2Fbase%2Fmoz.build&redirect_type=single#39. However, it requires a lot of discipline to minimize the shared code, and might not be possible for something so tied to the Fennec Java code.
Thanks for the hint. I'll leave that for another day, but it might be doable if I split out onActivityPause/Resume into a separate interface, since that's the only bit of GeckoApplication I'm really interested in here.
Yup, splitting those two functions into their own interface and moving that into a JAR that is accessible for android/services as well works.
Assignee: nobody → jh+bugzilla
No longer depends on: gradle-automation
No longer needed because of bug 1346413.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Attachment #8836231 - Attachment is obsolete: true
Attachment #8836232 - Attachment is obsolete: true
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: