Skip to content

Commit

Permalink
Merge branch 'release/v1.6.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Aug 4, 2015
2 parents af148d6 + 88e9d02 commit 1b2b00a
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The Android-Iconics Library is pushed to [Maven Central], so you just need to ad

```gradle
dependencies {
compile 'com.mikepenz:iconics:1.6.1@aar'
compile 'com.mikepenz:iconics:1.6.2@aar'
}
```

Expand All @@ -35,7 +35,7 @@ Provide your own font without the additional icons

```gradle
dependencies {
compile 'com.mikepenz:iconics-core:1.6.1@aar'
compile 'com.mikepenz:iconics-core:1.6.2@aar'
}
```

Expand Down Expand Up @@ -131,7 +131,7 @@ Just add the dependency of any and as many typface-library-addons in your build.

```javascript
dependencies {
compile 'com.mikepenz:iconics:1.6.1@aar'
compile 'com.mikepenz:iconics:1.6.2@aar'
compile 'com.mikepenz:octicons-typeface:2.2.1@aar'
compile 'com.mikepenz:meteocons-typeface:1.1.2@aar'
compile 'com.mikepenz:community-material-typeface:1.1.71@aar'
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 161
versionName "1.6.1"
versionCode 162
versionName "1.6.2"
enforceUniquePackageName false
}

Expand Down
4 changes: 2 additions & 2 deletions library-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 161
versionName "1.6.1"
versionCode 162
versionName "1.6.2"
}
buildTypes {
release {
Expand Down
4 changes: 2 additions & 2 deletions library-core/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
VERSION_NAME=1.6.1
VERSION_CODE=161
VERSION_NAME=1.6.2
VERSION_CODE=162

POM_NAME=Android-Iconics Library
POM_ARTIFACT_ID=iconics-core
Expand Down
6 changes: 5 additions & 1 deletion library-core/src/main/java/com/mikepenz/iconics/Iconics.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ public static Collection<ITypeface> getRegisteredFonts(Context ctx) {
return FONTS.values();
}

public static ITypeface findFont(String key) {
public static ITypeface findFont(Context ctx, String key) {
if (FONTS == null) {
init(ctx);
}

return FONTS.get(key);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public IconicsDrawable(Context context, String icon) {
mContext = context.getApplicationContext();
prepare();

ITypeface font = Iconics.findFont(icon.substring(0, 3));
ITypeface font = Iconics.findFont(context, icon.substring(0, 3));
icon = icon.replace("-", "_");
icon(font.getIcon(icon));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
Android-Iconics is a library to use (almost) any alternative icon-font in your projects. It allows you to add any Android-Iconics compatible typeface-library-addon to your project and you are able to start using that font.
]]>
</string>
<string name="library_AndroidIconics_libraryVersion">1.6.1</string>
<string name="library_AndroidIconics_libraryVersion">1.6.2</string>
<string name="library_AndroidIconics_libraryWebsite">https://github.com/mikepenz/Android-Iconics</string>
<string name="library_AndroidIconics_licenseId">apache_2_0</string>
<string name="library_AndroidIconics_isOpenSource">true</string>
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 rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 161
versionName "1.6.1"
versionCode 162
versionName "1.6.2"
}
buildTypes {
release {
Expand All @@ -25,5 +25,5 @@ if (project.hasProperty('pushall') || project.hasProperty('libraryonly')) {
}

dependencies {
compile "com.mikepenz:iconics-core:1.6.1"
compile "com.mikepenz:iconics-core:1.6.2"
}
4 changes: 2 additions & 2 deletions library/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
VERSION_NAME=1.6.1
VERSION_CODE=161
VERSION_NAME=1.6.2
VERSION_CODE=162

POM_NAME=Android-Iconics Library
POM_ARTIFACT_ID=iconics
Expand Down

0 comments on commit 1b2b00a

Please sign in to comment.