Skip to content

Commit

Permalink
Released 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielemariotti committed Nov 19, 2013
1 parent efdd02e commit 8c758be
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.Toast;

import it.gmariotti.changelibs.R;
import it.gmariotti.changelibs.library.Constants;
import it.gmariotti.changelibs.library.Util;
import it.gmariotti.changelibs.library.internal.ChangeLog;
import it.gmariotti.changelibs.library.internal.ChangeLogAdapter;
import it.gmariotti.changelibs.library.internal.ChangeLogRow;
Expand Down Expand Up @@ -141,7 +143,10 @@ protected void initAdapter() {
mAdapter.setmRowHeaderLayoutId(mRowHeaderLayoutId);

//Parse in a separate Thread to avoid UI block with large files
new ParseAsyncTask(mAdapter,parse).execute();
if (mChangeLogFileResourceUrl==null || (mChangeLogFileResourceUrl!=null && Util.isConnected(getContext())))
new ParseAsyncTask(mAdapter,parse).execute();
else
Toast.makeText(getContext(),R.string.changelog_internal_error_internet_connection,Toast.LENGTH_LONG).show();
setAdapter(mAdapter);
}else{
setAdapter(null);
Expand Down
2 changes: 2 additions & 0 deletions ChangeLogLibrary/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- Error messages -->
<string name="changelog_internal_error_parsing">Error while parsing file</string>

<string name="changelog_internal_error_internet_connection">No internet connection to fetch the changelog</string>

<!-- String for Version Header.
You can customize it in your strings.xml.
Expand All @@ -15,4 +16,5 @@
<string name="changelog_row_bulletpoint">\u2022"</string>



</resources>
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ For more detailed information and examples you can read this [document:](https:/

Try out:

* the apk with the [sample application](https://github.com/gabrielemariotti/changeloglib/blob/master/apk/demo-1.3.0.apk?raw=true)
* the apk with the [sample application](https://github.com/gabrielemariotti/changeloglib/blob/master/apk/demo-1.4.0.apk?raw=true)
* browse the [source code of the sample application](https://github.com/gabrielemariotti/changeloglib/tree/master/ChangeLogDemo) for a complete example of use.


Expand All @@ -81,7 +81,7 @@ ChangeLog Library is pushed to Maven Central as a AAR, so you just need to add t
compile 'com.github.gabrielemariotti.changeloglib:library:1.4.0'
}

[See this page for more info](https://github.com/gabrielemariotti/changeloglib/tree/master/doc/BUILD.md).
[To build the library and demo locally you can see this page for more info](https://github.com/gabrielemariotti/changeloglib/tree/master/doc/BUILD.md).


Credits
Expand Down
Binary file removed apk/demo-1.3.0.apk
Binary file not shown.
Binary file added apk/demo-1.4.0.apk
Binary file not shown.
18 changes: 9 additions & 9 deletions doc/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ Card Library is pushed to Maven Central as a AAR, so you just need to add the fo

## Reference this project as a library in Eclipse

if you would like to use this library in Eclipse you have to do these steps:
If you would like to use this library in Eclipse you have to do these steps:

- clone a copy of this repository, or download it.
- import the `ChangeLogLibrary` code in your workspace
- mark java(*) folder as source (right click on folder -> Build-Path -> use as source folder)
- mark ChangeLogLibrary as Android Library (right click -> Properties -> Android -> Is library)
- use API>=16 to compile library (right click -> Properties -> Android)
- clone a copy of this repository, or download it (outside eclipse workspace).
- import the `ChangeLogLibrary` code in your workspace starting from ChangeLogLibrary folder. The Wizard will import the code in ChangeLogLibrary/src/main. I suggest you to name it "chgloglib" (or another name) instead of "main".
- mark java(*) folder as source (right click on folder -> Build-Path -> use as source folder).You can also remove the src folder, from the project.
- mark chgloglib as Android Library (right click -> Properties -> Android -> Is library)
- The library targets SDK 19 and works with minSdk=7. In any cases you need to use API>=16 to compile library (right click -> Properties -> Android)


If you would like to build the demo you have to do these additional steps:

- import the `ChangeLogDemo` code in your workspace
- import the `ChangeLogDemo` code in your workspace starting from ChangeLogDemo folder.
- mark java(*) folder as source
- add ChangeLogLibrary as dependency ( right click -> Properties -> Android -> Add library)
- add chgloglib as dependency ( right click -> Properties -> Android -> Add library)
- add v7 appcompat library following [official guide](http://developer.android.com/tools/support-library/setup.html#libs-with-res)
- add v7-library as dependency ( right click -> Properties -> Android -> Add library)
- use API>=16 to compile demo.
- The demo targets SDK 19 and works with minSdk=7. In any cases you need to use API>=16 to compile it (right click -> Properties -> Android).


(*) Eclipse uses src and res as source folders.
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.3.1-SNAPSHOT
VERSION_CODE=4
VERSION_NAME=1.4.1-SNAPSHOT
VERSION_CODE=5
GROUP=com.github.gabrielemariotti.changeloglib

POM_DESCRIPTION=Android Library to display your changelog
Expand Down

0 comments on commit 8c758be

Please sign in to comment.