开源软件名称(OpenSource Name):fedora-infra/mobile开源软件地址(OpenSource Url):https://github.com/fedora-infra/mobile开源编程语言(OpenSource Language):Scala 100.0%开源软件介绍(OpenSource Introduction):Fedora MobileFedora Mobile is a one-stop-shop application for interacting with the Fedora community you know and love, on the go. It provides access to several applications run throughout the Fedora Infrastructure, and allows contributors and users to stay involved without being in front of a computer. Some things that Fedora Mobile sets out to do:
We target Android 3.0+ for the time being. The reason for this is that Fedora's mission is to "lead the advancement of free and open source software and content as a collaborative community" - advancement being key. Not having to deal with 2.x's quirks also lets us do some things more cleanly and take advantage of newer features like Navigation Drawers and the Action Bar without having to depend on thirdparty hacks/libraries. Trying it outYou can get the latest working HEAD build from the Fedora Infrastructure Jenkins instance at http://jenkins.cloud.fedoraproject.org/job/fedora-mobile/ws/target/fedora-mobile-0.1.apk A short URL that goes to the same thing (easier for typing on phones and tablets) is http://da.gd/j ScreenshotsBecause the readme is too short and I need to fill some space. ;) StatusSetting up a development environmentFedora Mobile is primarily written in Scala - but don't let this scare you. If you're familiar with the Android SDK, you'll find the Fedora Mobile code
really familiar. Because Scala runs on the JVM, we can use the same Java
libraries that native Java programs use, within our code. Yep, a (Ideally we would make very heavy use of scalaz's For the rest of this section, we'll assume that you're on a fairly modern Fedora version -- if not, some things might differ slightly. The general idea is to get a working SBT (Simple Build Tool) launcher working, and to get the Android SDK somewhere safe that SBT can read. This guide does NOT assume any particular IDE - in fact, I (@CodeBlock) solely use Emacs to develop. However, if you must use an IDE, maybe consider the Scala IDE for Eclipse. Installing dependenciesThe Android development platform requires some 32-bit packages to be installed. We also need a working Java compiler and runtime.
Source: Fedora Wiki. Get the Android SDKTo start out, get the Android SDK. You'll likely want the one that says Linux 64-bit. Unzip the SDK and put the result someplace safe. I use
Permanently set your
Remember to Install the right API level(s)NOTE: Fedora Mobile supports Android 3.0 and up, which is API Level 11+. Open up the Android SDK Manager by running:
Once it comes up, select at least everything under API Level 11 and API Level 17, and click Install. This will take some time. The EmulatorAndroid provides a nice emulator that we can use for testing the app as we develop. Close out of the Android SDK Manager, and open the Android Virtual Device Manager. Do this by running:
When it comes up, do the following (changing fields as needed):
Hit OK, then do the same for API Level 11. Close out of the Android Virtual Device Manager. Getting SBTWe make use of the To set up sbt, just do:
Getting the code and getting startedYou're almost done! At this point, if you haven't done so, clone this repository. If you're a committer,
Otherwise,
Run Once it completes, you can just run All of the following assume you're in the SBT shell. You can do the same things
from your shell prompt by doing Start your emulator (or connect your physical device using Run In most cases, you can make your changes, then just do
To compile without installing to the emulator, use To just obtain an APK (without installing into the device), use
DebuggingWhen you encounter "The application has quit" errors, it means an uncaught
exception was thrown. You can use ADB and Run:
When you're in the shell, use LicenseThe application is licensed under the Mozilla Public License, version 2. See LICENSE. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论