Skip to content

Commit

Permalink
Merge branch 'release/v3.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Aug 11, 2015
2 parents 7d0eb15 + 187c34c commit e4831e6
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The ActionItemBadge Library is pushed to [Maven Central], so you just need to ad

```javascript
dependencies {
compile('com.mikepenz:actionitembadge:3.0.6@aar') {
compile('com.mikepenz:actionitembadge:3.1.0@aar') {
transitive = true
}
}
Expand Down
13 changes: 8 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.mikepenz.actionitembadge.sample"
minSdkVersion 14
targetSdkVersion 22
versionCode 306
versionName "3.0.6"
versionCode 310
versionName "3.1.0"
}
buildTypes {
release {
Expand All @@ -22,11 +22,14 @@ android {

dependencies {
compile project(':library')
compile('com.mikepenz:materialdrawer:3.1.2@aar') {
compile('com.mikepenz:materialdrawer:4.0.0.rc7-SNAPSHOT@aar') {
transitive = true
exclude module: "iconics-core"
}
compile('com.mikepenz:aboutlibraries:5.0.9@aar') {
compile('com.mikepenz:aboutlibraries:5.1.1@aar') {
transitive = true
}
compile 'com.mikepenz:iconics:1.6.2@aar'

compile 'com.mikepenz:google-material-typeface:1.2.0@aar'
compile 'com.mikepenz:fontawesome-typeface:4.4.0@aar'
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import com.mikepenz.actionitembadge.R;
import com.mikepenz.actionitembadge.library.ActionItemBadge;
import com.mikepenz.actionitembadge.library.ActionItemBadgeAdder;
import com.mikepenz.iconics.typeface.FontAwesome;
import com.mikepenz.fontawesome_typeface_library.FontAwesome;


public class MainActivity extends AppCompatActivity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Toast;

import com.mikepenz.aboutlibraries.LibsBuilder;
Expand All @@ -20,7 +19,7 @@
import com.mikepenz.actionitembadge.library.utils.BadgeStyle;
import com.mikepenz.actionitembadge.library.utils.NumberUtils;
import com.mikepenz.actionitembadge.library.utils.UIUtil;
import com.mikepenz.iconics.typeface.FontAwesome;
import com.mikepenz.fontawesome_typeface_library.FontAwesome;
import com.mikepenz.materialdrawer.Drawer;
import com.mikepenz.materialdrawer.DrawerBuilder;
import com.mikepenz.materialdrawer.model.DividerDrawerItem;
Expand Down Expand Up @@ -49,7 +48,7 @@ protected void onCreate(Bundle savedInstanceState) {
drawer = new DrawerBuilder(this)
.withToolbar(toolbar)
.addDrawerItems(
new PrimaryDrawerItem().withName("Activity").withIdentifier(1000).withCheckable(false),
new PrimaryDrawerItem().withName("Activity").withIdentifier(1000).withSelectable(false),
new DividerDrawerItem(),
new PrimaryDrawerItem().withName("Default (Dark Grey)").withIdentifier(1),
new PrimaryDrawerItem().withName("Grey").withIdentifier(2),
Expand All @@ -60,13 +59,13 @@ protected void onCreate(Bundle savedInstanceState) {
new PrimaryDrawerItem().withName("Yellow").withIdentifier(7),
new PrimaryDrawerItem().withName("Custom").withIdentifier(8),
new DividerDrawerItem(),
new PrimaryDrawerItem().withName("SWITCH").withIdentifier(9).withCheckable(false),
new PrimaryDrawerItem().withName("RESET COUNT").withIdentifier(10).withCheckable(false),
new PrimaryDrawerItem().withName("HIDE BADGE").withIdentifier(11).withCheckable(false)
new PrimaryDrawerItem().withName("SWITCH").withIdentifier(9).withSelectable(false),
new PrimaryDrawerItem().withName("RESET COUNT").withIdentifier(10).withSelectable(false),
new PrimaryDrawerItem().withName("HIDE BADGE").withIdentifier(11).withSelectable(false)
)
.withOnDrawerItemClickListener(new Drawer.OnDrawerItemClickListener() {
@Override
public boolean onItemClick(AdapterView<?> adapterView, View view, int i, long l, IDrawerItem iDrawerItem) {
public boolean onItemClick(View view, int i, IDrawerItem iDrawerItem) {
if (iDrawerItem.getIdentifier() == 1000) {
Intent intent = new Intent(ToolbarActivity.this, MainActivity.class);
startActivity(intent);
Expand Down
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ allprojects {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}


task wrapper(type: Wrapper) {
gradleVersion = '2.5'
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

VERSION_NAME=3.0.6
VERSION_CODE=306
VERSION_NAME=3.1.0
VERSION_CODE=310
GROUP=com.mikepenz

POM_DESCRIPTION=Android-ActionItemBadge Library
Expand Down
6 changes: 3 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 22
versionCode 306
versionName "3.0.6"
versionCode 310
versionName "3.1.0"
}
buildTypes {
release {
Expand All @@ -20,5 +20,5 @@ android {
apply from: 'gradle-mvn-push.gradle'

dependencies {
compile 'com.mikepenz:iconics-core:1.6.2@aar'
compile 'com.mikepenz:iconics-core:1.7.1@aar'
}
2 changes: 1 addition & 1 deletion library/src/main/res/values/aboutlibraries.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Android-<b>ActionItemBadge</b> is a library which offers a simple and easy to use method to add a badge to your action item!!
]]>
</string>
<string name="library_AndroidActionItemBadge_libraryVersion">3.0.6</string>
<string name="library_AndroidActionItemBadge_libraryVersion">3.1.0</string>
<string name="library_AndroidActionItemBadge_libraryWebsite">https://github.com/mikepenz/Android-ActionItemBadge</string>
<string name="library_AndroidActionItemBadge_licenseId">apache_2_0</string>
<string name="library_AndroidActionItemBadge_isOpenSource">true</string>
Expand Down

0 comments on commit e4831e6

Please sign in to comment.