Skip to content

Commit

Permalink
crlf
Browse files Browse the repository at this point in the history
  • Loading branch information
yanchenko committed Sep 21, 2012
1 parent e8377ea commit 37b33c8
Show file tree
Hide file tree
Showing 69 changed files with 2,645 additions and 2,645 deletions.
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
DroidParts
----------
is a carefully crafted Android framework that includes:
* *DI* - dependency injection for Views, resources, etc.
* *SQLite* object-relational mapping.
* *JSON* (de)serialization.
* Improved *AsyncTasks* with Exceptions, progress & result reporting.
* Better *logger* (log any object without a tag).
* *RESTClient* for GETting, PUTting, POSTing, DELETing & InputStream-getting, also speaks JSON.
* *ImageAttacher* to asynchronously attach images to ImageViews, cross fade support.
* Numerous *Utils*.
* Support for *Fragments* in cooperation with [ActionBarSherlock][1].

Getting Started
---------------
User Guide is available at http://droidparts.org.
Please check out a couple of sample apps under /sample.

Contributing
------------
* Pull Requests are preferred over Issues.
* Please use http://stackoverflow.com/tags/droidparts for questions.


DroidParts
----------
is a carefully crafted Android framework that includes:
* *DI* - dependency injection for Views, resources, etc.
* *SQLite* object-relational mapping.
* *JSON* (de)serialization.
* Improved *AsyncTasks* with Exceptions, progress & result reporting.
* Better *logger* (log any object without a tag).
* *RESTClient* for GETting, PUTting, POSTing, DELETing & InputStream-getting, also speaks JSON.
* *ImageAttacher* to asynchronously attach images to ImageViews, cross fade support.
* Numerous *Utils*.
* Support for *Fragments* in cooperation with [ActionBarSherlock][1].

Getting Started
---------------
User Guide is available at http://droidparts.org.
Please check out a couple of sample apps under /sample.

Contributing
------------
* Pull Requests are preferred over Issues.
* Please use http://stackoverflow.com/tags/droidparts for questions.


[1]: https://github.com/JakeWharton/ActionBarSherlock
66 changes: 33 additions & 33 deletions base/.project
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>droidparts-base</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>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>droidparts-base</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>
6 changes: 3 additions & 3 deletions base/.settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Thu Sep 15 19:02:18 EEST 2011
eclipse.preferences.version=1
encoding/<project>=UTF-8
#Thu Sep 15 19:02:18 EEST 2011
eclipse.preferences.version=1
encoding/<project>=UTF-8
6 changes: 3 additions & 3 deletions base/.settings/org.eclipse.core.runtime.prefs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Thu Sep 15 19:02:28 EEST 2011
eclipse.preferences.version=1
line.separator=\n
#Thu Sep 15 19:02:28 EEST 2011
eclipse.preferences.version=1
line.separator=\n
114 changes: 57 additions & 57 deletions base/.settings/org.eclipse.jdt.ui.prefs

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions base/build.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="droidparts-base">
<loadproperties srcFile="project.properties" />
<import file="${sdk.dir}/tools/ant/build.xml" />
<?xml version="1.0" encoding="utf-8"?>
<project name="droidparts-base">
<loadproperties srcFile="project.properties" />
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>
74 changes: 37 additions & 37 deletions base/src/org/droidparts/activity/ListActivity.java
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
/**
* Copyright 2012 Alex Yanchenko
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.droidparts.activity;

import org.droidparts.inject.Injectable;
import org.droidparts.inject.Injector;

import android.os.Bundle;

public abstract class ListActivity extends android.app.ListActivity implements
Injectable {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
onPreInject();
Injector.get().inject(this);
}

@Override
public void onPreInject() {
}

}
/**
* Copyright 2012 Alex Yanchenko
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.droidparts.activity;

import org.droidparts.inject.Injectable;
import org.droidparts.inject.Injector;

import android.os.Bundle;

public abstract class ListActivity extends android.app.ListActivity implements
Injectable {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
onPreInject();
Injector.get().inject(this);
}

@Override
public void onPreInject() {
}

}
70 changes: 35 additions & 35 deletions base/src/org/droidparts/adapter/cursor/CursorAdapter.java
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
/**
* Copyright 2012 Alex Yanchenko
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.droidparts.adapter.cursor;

import org.droidparts.annotation.inject.InjectSystemService;
import org.droidparts.inject.Injector;

import android.app.Activity;
import android.database.Cursor;
import android.view.LayoutInflater;

public abstract class CursorAdapter extends android.widget.CursorAdapter {

@InjectSystemService
protected LayoutInflater layoutInflater;

public CursorAdapter(Activity activity, Cursor cursor) {
super(activity, cursor);
Injector.get().inject(activity, this);
}

}
/**
* Copyright 2012 Alex Yanchenko
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.droidparts.adapter.cursor;

import org.droidparts.annotation.inject.InjectSystemService;
import org.droidparts.inject.Injector;

import android.app.Activity;
import android.database.Cursor;
import android.view.LayoutInflater;

public abstract class CursorAdapter extends android.widget.CursorAdapter {

@InjectSystemService
protected LayoutInflater layoutInflater;

public CursorAdapter(Activity activity, Cursor cursor) {
super(activity, cursor);
Injector.get().inject(activity, this);
}

}
Loading

0 comments on commit 37b33c8

Please sign in to comment.