Browse Source

Split Transdroid into Lite (no search and RSS) and Full versions, with the Core project containing all function code.

pull/11/head
Eric Kok 12 years ago
parent
commit
0c09c4121f
  1. 91
      core/AndroidManifest.xml
  2. 1
      core/project.properties
  3. 2
      core/res/menu/activity_torrents.xml
  4. 8
      core/src/org/transdroid/core/gui/DetailsActivity.java
  5. 24
      core/src/org/transdroid/core/gui/DetailsFragment.java
  6. 4
      core/src/org/transdroid/core/gui/SearchHistoryProvider.java
  7. 45
      core/src/org/transdroid/core/gui/TorrentsActivity.java
  8. 21
      core/src/org/transdroid/core/gui/TorrentsFragment.java
  9. 1
      core/src/org/transdroid/core/gui/lists/SimpleListItem.java
  10. 3
      core/src/org/transdroid/core/gui/lists/SimpleListItemView.java
  11. 2
      core/src/org/transdroid/core/gui/lists/TorrentDetailsView.java
  12. 2
      core/src/org/transdroid/core/gui/lists/TorrentFileView.java
  13. 3
      core/src/org/transdroid/core/gui/lists/TorrentView.java
  14. 1
      core/src/org/transdroid/core/gui/lists/TorrentsAdapter.java
  15. 3
      core/src/org/transdroid/core/gui/navigation/FilterSeparatorView.java
  16. 18
      core/src/org/transdroid/core/gui/navigation/NavigationHelper.java
  17. 3
      core/src/org/transdroid/core/gui/navigation/NavigationSelectionView.java
  18. 2
      core/src/org/transdroid/core/gui/settings/RssfeedSettingsActivity.java
  19. 2
      core/src/org/transdroid/core/gui/settings/ServerSettingsActivity.java
  20. 2
      core/src/org/transdroid/core/gui/settings/WebsearchSettingsActivity.java
  21. 8
      full/.classpath
  22. 33
      full/.project
  23. 102
      full/AndroidManifest.xml
  24. 20
      full/proguard-project.txt
  25. 15
      full/project.properties
  26. 5
      full/res/values/strings.xml
  27. 8
      lite/.classpath
  28. 33
      lite/.project
  29. 65
      lite/AndroidManifest.xml
  30. 20
      lite/proguard-project.txt
  31. 15
      lite/project.properties
  32. 5
      lite/res/values/strings.xml

91
core/AndroidManifest.xml

@ -8,95 +8,4 @@ @@ -8,95 +8,4 @@
android:minSdkVersion="7"
android:targetSdkVersion="17" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Sherlock" >
<!-- Main activities -->
<activity
android:name="org.transdroid.core.gui.TorrentsActivity_"
android:label="@string/app_name"
android:icon="@drawable/ic_activity_torrents"
android:uiOptions="splitActionBarWhenNarrow"
android:theme="@style/TransdroidTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.default_searchable"
android:value="org.transdroid.gui.search.Search" />
</activity>
<activity
android:name="org.transdroid.core.gui.DetailsActivity_"
android:icon="@drawable/ic_activity_torrents"
android:uiOptions="splitActionBarWhenNarrow"
android:theme="@style/TransdroidTheme" >
</activity>
<!-- Settings screens -->
<activity android:name="org.transdroid.core.gui.settings.MainSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.ServerSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.WebsearchSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.RssfeedSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.NotificationSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.SystemSettingsActivity_" />
<!-- Search -->
<activity
android:name="org.transdroid.core.gui.SearchActivity"
android:label="@string/search_torrentsearch"
android:icon="@drawable/ic_activity_torrents"
android:theme="@style/TransdroidTheme" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
<meta-data
android:name="android.app.default_searchable"
android:value="org.transdroid.gui.search.Search" />
<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>
<provider
android:name="org.transdroid.core.gui.SearchHistoryProvider"
android:authorities="org.transdroid.core.gui.SearchHistoryProvider"
android:exported="false" />
<meta-data
android:name="android.app.default_searchable"
android:value="org.transdroid.core.gui.SearchActivity_" />
</application>
</manifest>

1
core/project.properties

@ -14,3 +14,4 @@ @@ -14,3 +14,4 @@
target=android-16
android.library.reference.1=../external/JakeWharton-ActionBarSherlock/library
android.library.reference.2=../external/ColorPickerPreference
android.library=true

2
core/res/menu/activity_torrents.xml

@ -54,7 +54,7 @@ @@ -54,7 +54,7 @@
android:title="@string/action_filter"/>
<item
android:id="@+id/action_help"
android:showAsAction="never"
android:showAsAction="always"
android:title="@string/action_help"/>
<item
android:id="@+id/action_settings"

8
core/src/org/transdroid/core/gui/DetailsActivity.java

@ -47,8 +47,8 @@ import android.widget.Toast; @@ -47,8 +47,8 @@ import android.widget.Toast;
import com.actionbarsherlock.app.SherlockFragmentActivity;
@EActivity(R.layout.activity_details)
@OptionsMenu(R.menu.activity_details)
@EActivity(resName="activity_details")
@OptionsMenu(resName="activity_details")
public class DetailsActivity extends SherlockFragmentActivity implements TorrentTasksExecutor {
@Extra
@ -61,7 +61,7 @@ public class DetailsActivity extends SherlockFragmentActivity implements Torrent @@ -61,7 +61,7 @@ public class DetailsActivity extends SherlockFragmentActivity implements Torrent
private IDaemonAdapter currentConnection = null;
// Details view components
@FragmentById(R.id.torrent_details)
@FragmentById(resName="torrent_details")
protected DetailsFragment fragmentDetails;
@AfterViews
@ -94,7 +94,7 @@ public class DetailsActivity extends SherlockFragmentActivity implements Torrent @@ -94,7 +94,7 @@ public class DetailsActivity extends SherlockFragmentActivity implements Torrent
TorrentsActivity_.intent(this).flags(Intent.FLAG_ACTIVITY_CLEAR_TOP).start();
}
@OptionsItem(R.id.action_refresh)
@OptionsItem(resName="action_refresh")
protected void refreshScreen() {
refreshTorrent();
refreshTorrentDetails();

24
core/src/org/transdroid/core/gui/DetailsFragment.java

@ -29,8 +29,8 @@ import com.actionbarsherlock.view.SherlockListView; @@ -29,8 +29,8 @@ import com.actionbarsherlock.view.SherlockListView;
* object, but it also retrieves further detailed statistics.
* @author Eric Kok
*/
@EFragment(R.layout.fragment_details)
@OptionsMenu(R.menu.fragment_details)
@EFragment(resName="fragment_details")
@OptionsMenu(resName="fragment_details")
public class DetailsFragment extends SherlockFragment {
// Local data
@ -42,7 +42,7 @@ public class DetailsFragment extends SherlockFragment { @@ -42,7 +42,7 @@ public class DetailsFragment extends SherlockFragment {
protected ArrayList<TorrentFile> torrentFiles = null;
// Views
@ViewById(R.id.details_list)
@ViewById(resName="details_list")
protected SherlockListView detailsList;
@ViewById
protected TextView emptyText;
@ -142,47 +142,47 @@ public class DetailsFragment extends SherlockFragment { @@ -142,47 +142,47 @@ public class DetailsFragment extends SherlockFragment {
}
@OptionsItem(R.id.action_resume)
@OptionsItem(resName="action_resume")
protected void resumeTorrent() {
getTasksExecutor().resumeTorrent(torrent);
}
@OptionsItem(R.id.action_pause)
@OptionsItem(resName="action_pause")
protected void pauseTorrent() {
getTasksExecutor().pauseTorrent(torrent);
}
@OptionsItem(R.id.action_start_default)
@OptionsItem(resName="action_start_default")
protected void startTorrentDefault() {
getTasksExecutor().startTorrent(torrent, false);
}
@OptionsItem(R.id.action_start_forced)
@OptionsItem(resName="action_start_forced")
protected void startTorrentForced() {
getTasksExecutor().startTorrent(torrent, true);
}
@OptionsItem(R.id.action_stop)
@OptionsItem(resName="action_stop")
protected void stopTorrent() {
getTasksExecutor().stopTorrent(torrent);
}
@OptionsItem(R.id.action_remove_default)
@OptionsItem(resName="action_remove_default")
protected void removeTorrentDefault() {
getTasksExecutor().removeTorrent(torrent, false);
}
@OptionsItem(R.id.action_remove_withdata)
@OptionsItem(resName="action_remove_withdata")
protected void removeTorrentWithData() {
getTasksExecutor().removeTorrent(torrent, true);
}
@OptionsItem(R.id.action_setlabel)
@OptionsItem(resName="action_setlabel")
protected void setLabel() {
// TODO: Show label selection dialog
}
@OptionsItem(R.id.action_updatetrackers)
@OptionsItem(resName="action_updatetrackers")
protected void updateTrackers() {
// TODO: Show trackers edit dialog
}

4
core/src/org/transdroid/core/gui/SearchHistoryProvider.java

@ -4,6 +4,10 @@ import android.content.Context; @@ -4,6 +4,10 @@ import android.content.Context;
import android.content.SearchRecentSuggestionsProvider;
import android.provider.SearchRecentSuggestions;
/**
* Provides search suggestions by simply returning previous user entries
* @author Eric Kok
*/
public class SearchHistoryProvider extends SearchRecentSuggestionsProvider {
public final static String AUTHORITY = "org.transdroid.core.gui.SearchHistoryProvider";

45
core/src/org/transdroid/core/gui/TorrentsActivity.java

@ -44,6 +44,8 @@ import org.transdroid.daemon.task.StopTask; @@ -44,6 +44,8 @@ import org.transdroid.daemon.task.StopTask;
import android.annotation.TargetApi;
import android.app.SearchManager;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.view.View;
import android.widget.AdapterView;
@ -58,8 +60,8 @@ import com.actionbarsherlock.view.MenuItem; @@ -58,8 +60,8 @@ import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.SherlockListView;
import com.actionbarsherlock.widget.SearchView;
@EActivity(R.layout.activity_torrents)
@OptionsMenu(R.menu.activity_torrents)
@EActivity(resName="activity_torrents")
@OptionsMenu(resName="activity_torrents")
public class TorrentsActivity extends SherlockFragmentActivity implements OnNavigationListener, TorrentTasksExecutor, NavigationFilterManager {
// Navigation components
@ -84,11 +86,11 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi @@ -84,11 +86,11 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi
protected boolean turleModeEnabled = false;
// Torrents list components
@FragmentById(R.id.torrent_list)
@FragmentById(resName="torrent_list")
protected TorrentsFragment fragmentTorrents;
// Details view components
@FragmentById(R.id.torrent_details)
@FragmentById(resName="torrent_details")
protected DetailsFragment fragmentDetails;
@AfterViews
@ -149,13 +151,15 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi @@ -149,13 +151,15 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
// For Android 2.1+, add an expandable SearchView to the action bar
MenuItem item = menu.findItem(R.id.action_search);
if (android.os.Build.VERSION.SDK_INT >= 8) {
final SearchView searchView = new SearchView(this);
searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
searchView.setQueryRefinementEnabled(true);
item.setActionView(searchView);
if (navigationHelper.enableSearchUi()) {
// For Android 2.1+, add an expandable SearchView to the action bar
MenuItem item = menu.findItem(R.id.action_search);
if (android.os.Build.VERSION.SDK_INT >= 8) {
final SearchView searchView = new SearchView(this);
searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
searchView.setQueryRefinementEnabled(true);
item.setActionView(searchView);
}
}
return true;
}
@ -183,8 +187,8 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi @@ -183,8 +187,8 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi
// There is a connection (read: settings to some server known)
menu.findItem(R.id.action_add).setVisible(true);
menu.findItem(R.id.action_search).setVisible(true);
menu.findItem(R.id.action_rss).setVisible(true);
menu.findItem(R.id.action_search).setVisible(navigationHelper.enableSearchUi());
menu.findItem(R.id.action_rss).setVisible(navigationHelper.enableRssUi());
boolean hasAltMode = Daemon.supportsSetAlternativeMode(currentConnection.getType());
menu.findItem(R.id.action_enableturtle).setVisible(hasAltMode && !turleModeEnabled);
menu.findItem(R.id.action_disableturtle).setVisible(hasAltMode && turleModeEnabled);
@ -283,26 +287,31 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi @@ -283,26 +287,31 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi
// TODO: Handle start intent
}
@OptionsItem(R.id.action_refresh)
@OptionsItem(resName="action_refresh")
protected void refreshScreen() {
refreshTorrents();
getAdditionalStats();
}
@OptionsItem(R.id.action_enableturtle)
@OptionsItem(resName="action_enableturtle")
protected void enableTurtleMode() {
updateTurtleMode(true);
}
@OptionsItem(R.id.action_disableturtle)
@OptionsItem(resName="action_disableturtle")
protected void disableTurtleMode() {
updateTurtleMode(false);
}
@OptionsItem(R.id.action_settings)
@OptionsItem(resName="action_settings")
protected void openSettings() {
MainSettingsActivity_.intent(this).start();
}
@OptionsItem(resName="action_help")
protected void openHelp() {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.transdroid.org/download/")));
}
private void clearScreens() {
// Clear the currently shown list of torrent and perhaps the details

21
core/src/org/transdroid/core/gui/TorrentsFragment.java

@ -24,7 +24,7 @@ import com.actionbarsherlock.view.MenuItem; @@ -24,7 +24,7 @@ import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.SherlockListView;
import com.actionbarsherlock.view.SherlockListView.MultiChoiceModeListenerCompat;
@EFragment(R.layout.fragment_torrents)
@EFragment(resName="fragment_torrents")
public class TorrentsFragment extends SherlockFragment {
// Local data
@ -38,7 +38,7 @@ public class TorrentsFragment extends SherlockFragment { @@ -38,7 +38,7 @@ public class TorrentsFragment extends SherlockFragment {
protected boolean isLoading = false;
// Views
@ViewById(R.id.torrent_list)
@ViewById(resName="torrent_list")
protected SherlockListView torrentsList;
@ViewById
protected TextView emptyText;
@ -108,37 +108,36 @@ public class TorrentsFragment extends SherlockFragment { @@ -108,37 +108,36 @@ public class TorrentsFragment extends SherlockFragment {
checked.add((Torrent) torrentsList.getAdapter().getItem(i));
}
// Execute the requested action
switch (item.getItemId()) {
case R.id.action_resume:
int itemId = item.getItemId();
if (itemId == R.id.action_resume) {
for (Torrent torrent : checked) {
getTasksExecutor().resumeTorrent(torrent);
}
mode.finish();
return true;
case R.id.action_pause:
} else if (itemId == R.id.action_pause) {
for (Torrent torrent : checked) {
getTasksExecutor().pauseTorrent(torrent);
}
mode.finish();
return true;
case R.id.action_remove_default:
} else if (itemId == R.id.action_remove_default) {
for (Torrent torrent : checked) {
getTasksExecutor().removeTorrent(torrent, false);
}
mode.finish();
return true;
case R.id.action_remove_withdata:
} else if (itemId == R.id.action_remove_withdata) {
for (Torrent torrent : checked) {
getTasksExecutor().removeTorrent(torrent, true);
}
mode.finish();
return true;
case R.id.action_setlabel:
} else if (itemId == R.id.action_setlabel) {
// TODO: Open label selection dialogue
mode.finish();
return true;
default:
} else {
return false;
}
}
@ -159,7 +158,7 @@ public class TorrentsFragment extends SherlockFragment { @@ -159,7 +158,7 @@ public class TorrentsFragment extends SherlockFragment {
};
@ItemClick(R.id.torrent_list)
@ItemClick(resName="torrent_list")
protected void torrentsListClicked(Torrent torrent) {
DetailsActivity_.intent(getActivity()).torrent(torrent).start();
}

1
core/src/org/transdroid/core/gui/lists/SimpleListItem.java

@ -3,7 +3,6 @@ package org.transdroid.core.gui.lists; @@ -3,7 +3,6 @@ package org.transdroid.core.gui.lists;
/**
* Represents a filter item as shown in the navigation list or spinner.
*
* @author Eric Kok
*/
public interface SimpleListItem {

3
core/src/org/transdroid/core/gui/lists/SimpleListItemView.java

@ -2,7 +2,6 @@ package org.transdroid.core.gui.lists; @@ -2,7 +2,6 @@ package org.transdroid.core.gui.lists;
import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;
import org.transdroid.core.R;
import android.content.Context;
import android.widget.LinearLayout;
@ -12,7 +11,7 @@ import android.widget.TextView; @@ -12,7 +11,7 @@ import android.widget.TextView;
* View that represents some {@link SimpleListItem} object and simple prints out the text (in proper style)
* @author Eric Kok
*/
@EViewGroup(R.layout.list_item_filter)
@EViewGroup(resName="list_item_filter")
public class SimpleListItemView extends LinearLayout {
@ViewById

2
core/src/org/transdroid/core/gui/lists/TorrentDetailsView.java

@ -18,7 +18,7 @@ import android.widget.TextView; @@ -18,7 +18,7 @@ import android.widget.TextView;
* Represents a group of views that show torrent status, sizes, speeds and other details.
* @author Eric Kok
*/
@EViewGroup(R.layout.fragment_details_header)
@EViewGroup(resName="fragment_details_header")
public class TorrentDetailsView extends RelativeLayout {
@ViewById

2
core/src/org/transdroid/core/gui/lists/TorrentFileView.java

@ -14,7 +14,7 @@ import fr.marvinlabs.widget.CheckableRelativeLayout; @@ -14,7 +14,7 @@ import fr.marvinlabs.widget.CheckableRelativeLayout;
* View that represents some {@link TorrentFile} object and show the file's name, status and priority
* @author Eric Kok
*/
@EViewGroup(R.layout.list_item_torrentfile)
@EViewGroup(resName="list_item_torrentfile")
public class TorrentFileView extends CheckableRelativeLayout {
@ViewById

3
core/src/org/transdroid/core/gui/lists/TorrentView.java

@ -2,7 +2,6 @@ package org.transdroid.core.gui.lists; @@ -2,7 +2,6 @@ package org.transdroid.core.gui.lists;
import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;
import org.transdroid.core.R;
import org.transdroid.daemon.Torrent;
import org.transdroid.daemon.TorrentStatus;
@ -16,7 +15,7 @@ import fr.marvinlabs.widget.CheckableRelativeLayout; @@ -16,7 +15,7 @@ import fr.marvinlabs.widget.CheckableRelativeLayout;
* View that represents some {@link Torrent} object and displays progress, status, speeds, etc.
* @author Eric Kok
*/
@EViewGroup(R.layout.list_item_torrent)
@EViewGroup(resName="list_item_torrent")
public class TorrentView extends CheckableRelativeLayout {
@ViewById

1
core/src/org/transdroid/core/gui/lists/TorrentsAdapter.java

@ -4,7 +4,6 @@ import java.util.ArrayList; @@ -4,7 +4,6 @@ import java.util.ArrayList;
import org.androidannotations.annotations.EBean;
import org.androidannotations.annotations.RootContext;
import org.transdroid.core.gui.lists.TorrentView_;
import org.transdroid.daemon.Torrent;
import android.content.Context;

3
core/src/org/transdroid/core/gui/navigation/FilterSeparatorView.java

@ -2,7 +2,6 @@ package org.transdroid.core.gui.navigation; @@ -2,7 +2,6 @@ package org.transdroid.core.gui.navigation;
import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;
import org.transdroid.core.R;
import android.content.Context;
import android.widget.LinearLayout;
@ -13,7 +12,7 @@ import android.widget.TextView; @@ -13,7 +12,7 @@ import android.widget.TextView;
*
* @author Eric Kok
*/
@EViewGroup(R.layout.list_item_separator)
@EViewGroup(resName="list_item_separator")
public class FilterSeparatorView extends LinearLayout {
protected String text;

18
core/src/org/transdroid/core/gui/navigation/NavigationHelper.java

@ -12,6 +12,24 @@ public class NavigationHelper { @@ -12,6 +12,24 @@ public class NavigationHelper {
@RootContext
protected Context context;
/**
* Whether any search-related UI components should be shown in the interface. At the moment returns false only if we
* run as Transdroid Lite version.
* @return True if search is enabled, false otherwise
*/
public boolean enableSearchUi() {
return !context.getPackageName().equals("org.transdroid.lite");
}
/**
* Whether any RSS-related UI components should be shown in the interface. At the moment returns false only if we
* run as Transdroid Lite version.
* @return True if search is enabled, false otherwise
*/
public boolean enableRssUi() {
return !context.getPackageName().equals("org.transdroid.lite");
}
/**
* Whether the navigation of server types and labels as filter are shown in a separate fragment.

3
core/src/org/transdroid/core/gui/navigation/NavigationSelectionView.java

@ -2,7 +2,6 @@ package org.transdroid.core.gui.navigation; @@ -2,7 +2,6 @@ package org.transdroid.core.gui.navigation;
import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;
import org.transdroid.core.R;
import android.content.Context;
import android.widget.LinearLayout;
@ -12,7 +11,7 @@ import android.widget.TextView; @@ -12,7 +11,7 @@ import android.widget.TextView;
* View that displays the user-selected server and display filter inside the action bar list navigation spinner
* @author Eric Kok
*/
@EViewGroup(R.layout.list_item_navigation)
@EViewGroup(resName="list_item_navigation")
public class NavigationSelectionView extends LinearLayout {
@ViewById

2
core/src/org/transdroid/core/gui/settings/RssfeedSettingsActivity.java

@ -17,7 +17,7 @@ import com.actionbarsherlock.app.SherlockPreferenceActivity; @@ -17,7 +17,7 @@ import com.actionbarsherlock.app.SherlockPreferenceActivity;
* @author Eric Kok
*/
@EActivity
@OptionsMenu(R.menu.activity_deleteableprefs)
@OptionsMenu(resName="activity_deleteableprefs")
public class RssfeedSettingsActivity extends SherlockPreferenceActivity {
@Extra

2
core/src/org/transdroid/core/gui/settings/ServerSettingsActivity.java

@ -22,7 +22,7 @@ import com.actionbarsherlock.app.SherlockPreferenceActivity; @@ -22,7 +22,7 @@ import com.actionbarsherlock.app.SherlockPreferenceActivity;
* @author Eric Kok
*/
@EActivity
@OptionsMenu(R.menu.activity_deleteableprefs)
@OptionsMenu(resName="activity_deleteableprefs")
public class ServerSettingsActivity extends SherlockPreferenceActivity {
@Extra

2
core/src/org/transdroid/core/gui/settings/WebsearchSettingsActivity.java

@ -17,7 +17,7 @@ import com.actionbarsherlock.app.SherlockPreferenceActivity; @@ -17,7 +17,7 @@ import com.actionbarsherlock.app.SherlockPreferenceActivity;
* @author Eric Kok
*/
@EActivity
@OptionsMenu(R.menu.activity_deleteableprefs)
@OptionsMenu(resName="activity_deleteableprefs")
public class WebsearchSettingsActivity extends SherlockPreferenceActivity {
@Extra

8
full/.classpath

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

33
full/.project

@ -0,0 +1,33 @@ @@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Transdroid Full</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

102
full/AndroidManifest.xml

@ -0,0 +1,102 @@ @@ -0,0 +1,102 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.transdroid.full"
android:versionCode="1"
android:versionName="2.0-alpha1" >
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="17" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Sherlock" >
<!-- Main activities -->
<activity
android:name="org.transdroid.core.gui.TorrentsActivity_"
android:label="@string/app_name"
android:icon="@drawable/ic_activity_torrents"
android:uiOptions="splitActionBarWhenNarrow"
android:theme="@style/TransdroidTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.default_searchable"
android:value="org.transdroid.gui.search.Search" />
</activity>
<activity
android:name="org.transdroid.core.gui.DetailsActivity_"
android:icon="@drawable/ic_activity_torrents"
android:uiOptions="splitActionBarWhenNarrow"
android:theme="@style/TransdroidTheme" >
</activity>
<!-- Settings screens -->
<activity android:name="org.transdroid.core.gui.settings.MainSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.ServerSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.WebsearchSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.RssfeedSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.NotificationSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.SystemSettingsActivity_" />
<!-- Search -->
<activity
android:name="org.transdroid.core.gui.SearchActivity"
android:label="@string/search_torrentsearch"
android:icon="@drawable/ic_activity_torrents"
android:theme="@style/TransdroidTheme" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
<meta-data
android:name="android.app.default_searchable"
android:value="org.transdroid.gui.search.Search" />
<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>
<provider
android:name="org.transdroid.core.gui.SearchHistoryProvider"
android:authorities="org.transdroid.core.gui.SearchHistoryProvider"
android:exported="false" />
<meta-data
android:name="android.app.default_searchable"
android:value="org.transdroid.core.gui.SearchActivity_" />
</application>
</manifest>

20
full/proguard-project.txt

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

15
full/project.properties

@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-16
android.library.reference.1=../core

5
full/res/values/strings.xml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
<resources>
<string name="app_name" translatable="false">Transdroid</string>
</resources>

8
lite/.classpath

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

33
lite/.project

@ -0,0 +1,33 @@ @@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Transdroid Lite</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

65
lite/AndroidManifest.xml

@ -0,0 +1,65 @@ @@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.transdroid.lite"
android:versionCode="1"
android:versionName="2.0-alpha1" >
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="17" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Sherlock" >
<!-- Main activities -->
<activity
android:name="org.transdroid.core.gui.TorrentsActivity_"
android:label="@string/app_name"
android:icon="@drawable/ic_activity_torrents"
android:uiOptions="splitActionBarWhenNarrow"
android:theme="@style/TransdroidTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.default_searchable"
android:value="org.transdroid.gui.search.Search" />
</activity>
<activity
android:name="org.transdroid.core.gui.DetailsActivity_"
android:icon="@drawable/ic_activity_torrents"
android:uiOptions="splitActionBarWhenNarrow"
android:theme="@style/TransdroidTheme" >
</activity>
<!-- Settings screens -->
<activity android:name="org.transdroid.core.gui.settings.MainSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.ServerSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.NotificationSettingsActivity_" />
<activity android:name="org.transdroid.core.gui.settings.SystemSettingsActivity_" />
</application>
</manifest>

20
lite/proguard-project.txt

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

15
lite/project.properties

@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-16
android.library.reference.1=../core

5
lite/res/values/strings.xml

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
<resources>
<string name="app_name" translatable="false">Transdroid Lite</string>
</resources>
Loading…
Cancel
Save