Stand-alone version of the search activity that is built with Firefox for Android.
Перейти к файлу
Margaret Leibovic a8dab38cc1 Update README.md 2014-09-24 10:34:15 -07:00
app Bug 1030896 - Add swipe-to-dismiss to PreSearchFragment list. r=margaret 2014-09-23 10:40:20 -07:00
branding Add the search widget 2014-07-30 13:43:20 -07:00
gradle/wrapper Fix gradle build issues 2014-06-23 16:34:47 -07:00
manifests Bug 1060470 - Don't reload web view on screen rotation. r=lucasr 2014-09-22 16:05:15 -07:00
strings Bug 1049600 - Show search engine branding. r=wesj 2014-09-19 16:19:15 -07:00
.gitignore Add grunt tasks. 2014-06-26 15:23:32 -07:00
Gruntfile.js Bug 1024527 - Post: Simplify |grunt export|. 2014-09-10 14:56:42 -07:00
LICENSE.md Add license and README. 2014-06-26 15:23:32 -07:00
README.md Update README.md 2014-09-24 10:34:15 -07:00
build.gradle Bug 1029292 - Part 1: Remove gradle deps. 2014-07-15 13:11:31 -07:00
gradle.properties Add IDE files. 2014-06-19 16:38:03 -07:00
gradlew Add IDE files. 2014-06-19 16:38:03 -07:00
gradlew.bat Add IDE files. 2014-06-19 16:38:03 -07:00
package.json Add grunt tasks. 2014-06-26 15:23:32 -07:00
settings.gradle No bug - Switch to nalexander's Maven repo for GeckoView. 2014-07-11 11:35:30 -07:00

README.md

This repo is no longer used for active development. To contribute to the Firefox search activity, please follow the normal Firefox for Android development process.

Fennec Search Activity

This is a stand-alone version of the search activity that is built with Firefox for Android. The main source code lives in mozilla-central, but this repo is a tool to make development easier.

Development happens in the Firefox for Android::Search Activity bugzilla component.

grunt

The Search Activity repository uses grunt tasks to integrate with a Mozilla source tree such as fx-team or mozilla-inbound. All grunt tasks take such a source tree specified either via a command line argument like --tree=PATH or via the environment variable MC.

Getting started with grunt

First, install node.js and npm using your OS-level package manager or similar. Then, in the Search Activity repository root directory, execute

$ npm install

You can check that grunt is working and the local dependencies are installed by executing grunt --help. You should see a list of available tasks, including a default task.

Grunt tasks

preprocess (default)

The default task, executed when you run grunt, is to preprocess the Android manifest and Android string resources. The inputs have the suffix .in and the outputs are written into the source tree. (This is so that gradle and Android Studio can find them without having additional paths specified. We might change this in future.)

clean

Delete all of the preprocessed outputs created by the preprocess task.

export

Copy the current Java source code, Android resources, string definitions, and Android manifest snippets to the Mozilla source tree provided. Does not copy any preprocessed outputs. (Preprocessed outputs must be created by the Mozilla source tree's build system at Fennec build time.) Use this to update your Mozilla source tree with the changes you've made in your local Search Activity repository.