Skip to content

Commit 0cf60a2

Browse files
authored
Merge pull request #595 from mikepenz/develop
dev -> main
2 parents 13a4ae9 + b689f56 commit 0cf60a2

16 files changed

Lines changed: 1838 additions & 1606 deletions

File tree

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.7.0)
4+
addressable (2.8.0)
55
public_suffix (>= 2.0.2, < 5.0)
66
ansi (1.5.0)
77
ast (2.4.1)
@@ -39,7 +39,7 @@ GEM
3939
faraday (>= 0.8)
4040
git (1.7.0)
4141
rchardet (~> 1.8)
42-
kramdown (2.3.0)
42+
kramdown (2.3.1)
4343
rexml
4444
kramdown-parser-gfm (1.1.0)
4545
kramdown (~> 2.0)
@@ -55,7 +55,7 @@ GEM
5555
open4 (1.3.4)
5656
public_suffix (4.0.6)
5757
rchardet (1.8.0)
58-
rexml (3.2.4)
58+
rexml (3.2.5)
5959
ruby-ll (2.1.2)
6060
ansi
6161
ast

README.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@
4444
- [Foundation Icons](http://zurb.com/playground/foundation-icon-fonts-3)
4545
- [Ionicons](http://ionicons.com/)
4646
- [Material Design DX](https://jossef.github.io/material-design-icons-iconfont/)
47+
- [Pixeden 7 Stroke](https://themes-pixeden.com/font-demos/7-stroke/)
48+
- [Phosphor](https://phosphoricons.com/)
4749
- Or create your own font with any icon needed.
4850

4951
# Setup
5052

5153
## Latest releases 🛠
5254

53-
- Kotlin Next Gen | [v5.2.8](https://github.com/mikepenz/Android-Iconics/tree/v5.2.8) | [v5.3.0-b01](https://github.com/mikepenz/Android-Iconics/tree/v5.3.0-b01)
55+
- Kotlin Next Gen | [v5.3.0](https://github.com/mikepenz/Android-Iconics/tree/v5.3.0)
5456
- Kotlin | [v4.0.2](https://github.com/mikepenz/Android-Iconics/tree/v4.0.2)
5557
- Java AndroidX | [v3.2.5](https://github.com/mikepenz/Android-Iconics/tree/v3.2.5)
5658
- Java Appcompat | [v3.0.4](https://github.com/mikepenz/Android-Iconics/tree/v3.0.4)
@@ -159,19 +161,19 @@ This feature was suggested and initially provided by @dzamlo
159161
#### As IconicsTextView
160162
```xml
161163
<com.mikepenz.iconics.view.IconicsTextView
162-
android:text="abc{hif-test}defgh{faw-adjust}ijk{fon-test1}lmnopqrstuv{fon-test2}wxyz"
163-
android:textColor="@android:color/black"
164-
android:layout_width="wrap_content"
165-
android:layout_height="56dp"
166-
android:textSize="16sp"/>
164+
android:text="abc{hif-test}defgh{faw-adjust}ijk{fon-test1}lmnopqrstuv{fon-test2}wxyz"
165+
android:textColor="@android:color/black"
166+
android:layout_width="wrap_content"
167+
android:layout_height="56dp"
168+
android:textSize="16sp"/>
167169
```
168170

169171
#### As IconicsButton
170172
```xml
171173
<com.mikepenz.iconics.view.IconicsButton
172-
android:text="{faw-adjust} Button"
173-
android:layout_width="120dp"
174-
android:layout_height="60dp"/>
174+
android:text="{faw-adjust} Button"
175+
android:layout_width="120dp"
176+
android:layout_height="60dp"/>
175177
```
176178

177179
## Compose
@@ -201,6 +203,8 @@ Image(
201203
|[Google Material Design Icons](https://github.com/google/material-design-icons) **ORIGINAL by Google**|gmd,gmo,gmr,gms|implementation 'com.mikepenz:google-material-typeface{-outlined,rounded,sharp}:+@aar'|
202204
|[Material Design Iconic Font](http://zavoloklom.github.io/material-design-iconic-font) **Google Material Iconic**|gmi|implementation 'com.mikepenz:material-design-iconic-typeface:+@aar'|
203205
|[Fontawesome](https://fontawesome.com/)|faw|implementation 'com.mikepenz:fontawesome-typeface:+@aar'|
206+
|[FontawesomeBrand](https://fontawesome.com/)|fab|implementation 'com.mikepenz:fontawesome-typeface:+@aar'|
207+
|[FontawesomeRegular](https://fontawesome.com/)|far|implementation 'com.mikepenz:fontawesome-typeface:+@aar'|
204208
|[Meteocons](http://www.alessioatzeni.com/meteocons/)|met|implementation 'com.mikepenz:meteocons-typeface:+@aar'|
205209
|[Octicons](https://github.com/github/octicons)|oct|implementation 'com.mikepenz:octicons-typeface:+@aar'|
206210
|[Community Material](http://materialdesignicons.com/)|cmd|implementation 'com.mikepenz:community-material-typeface:+@aar'|
@@ -216,6 +220,19 @@ Image(
216220

217221
Licenses for all included fonts are linked inside the class or can be found on the coresponding repositories.
218222

223+
# Compatibility Note
224+
225+
### appcompat:1.4.x
226+
227+
Appcompat v1.4.x introduces default enabled emoji support into all `AppCompat*` views, which prevents the `IconicsView*` views (iconics-views module) from properly applying the spannable style.
228+
To fix this problem, emoji support has to be disabled by doing:
229+
230+
```xml
231+
app:emojiCompatEnabled="false"
232+
```
233+
234+
More information on the appcompat emoji support: https://developer.android.com/jetpack/androidx/releases/appcompat#1.4.0-alpha01
235+
219236
# Advanced Usage
220237

221238
### Register fonts
@@ -241,7 +258,7 @@ Just define the style for all icons or only a specific one. You can find this in
241258
Iconics.Builder()
242259
.style(ForegroundColorSpan(Color.WHITE), BackgroundColorSpan(Color.BLACK), RelativeSizeSpan(2f))
243260
.styleFor(FontAwesome.Icon.faw_adjust, BackgroundColorSpan(Color.RED))
244-
.on(tv1)
261+
.on(tv1)
245262
.build()
246263
```
247264

@@ -280,7 +297,7 @@ For generating string field for each of icons of your font, you can use this sim
280297
A awesome gradle plugin which can automatically fetch a font from Fontastic, and generate the Android Module for your project.
281298
[Iconics-Font-Generator](https://github.com/ligol/IconicsFontGenerator)
282299

283-
# ProGuard
300+
# ProGuard / R8
284301

285302
ProGuard / R8 rules are bundled internally with each font.
286303

app/src/main/java/com/mikepenz/iconics/sample/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import com.mikepenz.iconics.IconicsDrawable
3737
import com.mikepenz.iconics.sample.databinding.ActivityMainBinding
3838
import com.mikepenz.iconics.typeface.IIcon
3939
import com.mikepenz.iconics.typeface.ITypeface
40-
import com.mikepenz.iconics.typeface.library.fontawesome.FontAwesome
40+
import com.mikepenz.iconics.typeface.library.fontawesome.FontAwesomeBrand
4141
import com.mikepenz.iconics.typeface.library.materialdesigniconic.MaterialDesignIconic
4242
import com.mikepenz.iconics.utils.actionBar
4343
import com.mikepenz.iconics.utils.colorInt
@@ -174,7 +174,7 @@ class MainActivity : AppCompatActivity() {
174174
})
175175

176176
val menuItem = menu.findItem(R.id.action_opensource)
177-
menuItem.icon = IconicsDrawable(this, FontAwesome.Icon.faw_github).apply {
177+
menuItem.icon = IconicsDrawable(this, FontAwesomeBrand.Icon.fab_github).apply {
178178
actionBar()
179179
colorInt = Color.WHITE
180180
}

app/src/main/java/com/mikepenz/iconics/sample/PlaygroundActivity.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import com.mikepenz.iconics.IconicsSize
4646
import com.mikepenz.iconics.sample.databinding.ActivityPlaygroundBinding
4747
import com.mikepenz.iconics.typeface.library.community.material.CommunityMaterial
4848
import com.mikepenz.iconics.typeface.library.fontawesome.FontAwesome
49+
import com.mikepenz.iconics.typeface.library.fontawesome.FontAwesomeBrand
4950
import com.mikepenz.iconics.typeface.library.octicons.Octicons
5051
import com.mikepenz.iconics.utils.actionBar
5152
import com.mikepenz.iconics.utils.backgroundColorInt
@@ -92,7 +93,7 @@ class PlaygroundActivity : AppCompatActivity() {
9293

9394
//You can also do some advanced stuff like setting an image within a text
9495
val sb = SpannableString(binding.test5.text)
95-
val d = IconicsDrawable(this, FontAwesome.Icon.faw_android).apply {
96+
val d = IconicsDrawable(this, FontAwesomeBrand.Icon.fab_android).apply {
9697
sizeDp = 48
9798
paddingDp = 4
9899
colorInt = themeValue1
@@ -117,7 +118,7 @@ class PlaygroundActivity : AppCompatActivity() {
117118

118119
//Set the icon of an ImageView (or something else) as bitmap
119120
binding.test3.setImageBitmap(
120-
IconicsDrawable(this, FontAwesome.Icon.faw_android).apply {
121+
IconicsDrawable(this, FontAwesomeBrand.Icon.fab_android).apply {
121122
sizeX = IconicsSize.dp(48)
122123
sizeY = IconicsSize.dp(32)
123124
paddingDp = 4
@@ -160,7 +161,7 @@ class PlaygroundActivity : AppCompatActivity() {
160161
backgroundColorInt = Color.RED
161162
}
162163
val array = IconicsArrayBuilder(iconicsDrawableBase)
163-
.add(FontAwesome.Icon.faw_android)
164+
.add(FontAwesomeBrand.Icon.fab_android)
164165
.add(Octicons.Icon.oct_octoface)
165166
.add("Hallo")
166167
.add('A')

build.gradle

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,37 +18,37 @@ buildscript {
1818

1919
ext {
2020
release = [
21-
versionName: "5.3.0-b01",
21+
versionName: "5.3.0",
2222
versionCode: 50300
2323
]
2424

2525
setup = [
2626
compileSdk : 30,
27-
buildTools : "30.0.2",
27+
buildTools : "30.0.3",
2828
minSdk : 16,
2929
composeMinSdk: 21,
3030
targetSdk : 30
3131
]
3232

3333
versions = [
34-
kotlin : '1.4.31',
34+
kotlin : '1.5.10',
3535
androidX : '1.0.0',
36-
recyclerView : '1.1.0',
37-
material : '1.3.0',
38-
appcompat : '1.2.0',
36+
recyclerView : '1.2.1',
37+
material : '1.4.0',
38+
appcompat : '1.3.1',
3939
drawerlayout : '1.1.0',
4040
constraintLayout: '2.0.4',
4141
cardview : '1.0.0',
4242
ktx : [
43-
core: '1.3.2'
43+
core: '1.6.0'
4444
],
4545
startup : '1.0.0',
4646
detekt : '1.16.0',
47-
aboutLibraries : '8.8.4',
48-
materialDrawer : '8.3.3',
49-
fastAdapter : '5.3.5',
47+
aboutLibraries : '8.9.1',
48+
materialDrawer : '8.4.2',
49+
fastAdapter : '5.4.1',
5050
// compose
51-
compose : '1.0.0-beta03'
51+
compose : '1.0.0'
5252
]
5353
}
5454

@@ -62,7 +62,7 @@ buildscript {
6262
}
6363

6464
dependencies {
65-
classpath 'com.android.tools.build:gradle:7.0.0-alpha12'
65+
classpath 'com.android.tools.build:gradle:7.1.0-alpha05'
6666
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
6767
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${versions.detekt}"
6868
classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:${versions.aboutLibraries}"

fontawesome-typeface-library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ android {
2626
minSdkVersion setup.minSdk
2727
targetSdkVersion setup.targetSdk
2828
consumerProguardFiles 'consumer-proguard-rules.pro'
29-
versionCode 59002
30-
versionName "5.9.0.2-kotlin"
29+
versionCode 51330
30+
versionName "5.13.3.0-kotlin"
3131

3232
resValue "string", "fontawesome_version", "${versionName}"
3333
}

0 commit comments

Comments
 (0)