Closed Bug 1229438 Opened 9 years ago Closed 9 years ago

Move Fennec background services code and resources to mobile/android/services

Categories

(Android Background Services Graveyard :: Build & Test, defect)

All
Android
defect
Not set
normal

Tracking

(firefox45 fixed)

RESOLVED FIXED
Firefox 45
Tracking Status
firefox45 --- fixed

People

(Reporter: nalexander, Assigned: nalexander)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

This is part of Bug 1229149: moving code and resources into mobile/android/services.

I'm about to work on Bug 1220892, and it will be better to do that *after* moving everything rather than *before*, in case we ever want to revert it (or parts of it).
Bug 1229438 - Part 1: Move code. r?rnewman

#!/bin/bash
mkdir -p mobile/android/services/src/main/java/org/mozilla/gecko
hg mv mobile/android/base/background mobile/android/services/src/main/java/org/mozilla/gecko
hg mv mobile/android/base/browserid mobile/android/services/src/main/java/org/mozilla/gecko
hg mv mobile/android/base/fxa mobile/android/services/src/main/java/org/mozilla/gecko
hg mv mobile/android/base/sync mobile/android/services/src/main/java/org/mozilla/gecko
hg mv mobile/android/base/tokenserver mobile/android/services/src/main/java/org/mozilla/gecko
hg mv mobile/android/base/reading mobile/android/services/src/main/java/org/mozilla/gecko
Attachment #8694342 - Flags: review?(rnewman)
Bug 1229438 - Part 2: Move resources. r?rnewman

#!/bin/bash
set -x
pushd mobile/android/base/resources
for i in * ; do
    mkdir -p ../res/$i ;
    hg mv $i/{fxa,sync}* ../res/$i ;
done
popd
hg mv mobile/android/base/res mobile/android/services/src/main/res
Attachment #8694343 - Flags: review?(rnewman)
Bug 1229438 - Part 3: Build fixes. r?rnewman
Attachment #8694344 - Flags: review?(rnewman)
Assignee: nobody → nalexander
Status: NEW → ASSIGNED
OS: Unspecified → Android
Hardware: Unspecified → All
Comment on attachment 8694342 [details]
MozReview Request: Bug 1229438 - Part 1: Move code. r?rnewman

https://reviewboard.mozilla.org/r/26725/#review24189
Attachment #8694342 - Flags: review?(rnewman) → review+
Comment on attachment 8694343 [details]
MozReview Request: Bug 1229438 - Part 2: Move resources. r?rnewman

https://reviewboard.mozilla.org/r/26727/#review24191
Attachment #8694343 - Flags: review?(rnewman) → review+
Attachment #8694344 - Flags: review?(rnewman) → review+
Comment on attachment 8694344 [details]
MozReview Request: Bug 1229438 - Part 3: Build fixes. r?rnewman

https://reviewboard.mozilla.org/r/26729/#review24193

::: mobile/android/app/base/build.gradle:34
(Diff revision 1)
> +                srcDir "${topsrcdir}/mobile/android/services/src/main/java/org"

Why does this need the 'org'? 'search' doesn't…

::: mobile/android/base/android-services.mozbuild:766
(Diff revision 1)
> -sync_java_files = [
> +sync_java_files = [TOPSRCDIR + '/mobile/android/services/src/main/java/org/mozilla/gecko/' + x for x in [

Smart approach.

If it builds, wfm.
(In reply to Richard Newman [:rnewman] from comment #7)
> Comment on attachment 8694344 [details]
> MozReview Request: Bug 1229438 - Part 3: Build fixes. r?rnewman
> 
> https://reviewboard.mozilla.org/r/26729/#review24193
> 
> ::: mobile/android/app/base/build.gradle:34
> (Diff revision 1)
> > +                srcDir "${topsrcdir}/mobile/android/services/src/main/java/org"
> 
> Why does this need the 'org'? 'search' doesn't…

Good catch!  Typo, and I didn't verify this configuration.
https://hg.mozilla.org/mozilla-central/rev/c34c06e5b7a4
https://hg.mozilla.org/mozilla-central/rev/173c41a495cb
https://hg.mozilla.org/mozilla-central/rev/62ee42d88bb2
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: