Skip to content

Commit

Permalink
Merge pull request #624 from mikepenz/develop
Browse files Browse the repository at this point in the history
dev -> main
  • Loading branch information
mikepenz committed Jun 24, 2022
2 parents ff43dbd + 52bf999 commit f93fbe6
Show file tree
Hide file tree
Showing 17 changed files with 2,530 additions and 43 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -37,7 +37,7 @@ GEM
multipart-post (>= 1.2, < 3)
faraday-http-cache (2.2.0)
faraday (>= 0.8)
git (1.7.0)
git (1.11.0)
rchardet (~> 1.8)
kramdown (2.3.1)
rexml
Expand Down
51 changes: 29 additions & 22 deletions README.md
Expand Up @@ -46,14 +46,15 @@
- [Material Design DX](https://jossef.github.io/material-design-icons-iconfont/)
- [Pixeden 7 Stroke](https://themes-pixeden.com/font-demos/7-stroke/)
- [Phosphor](https://phosphoricons.com/)
- [Simple Icons](https://simpleicons.org/)
- Or create your own font with any icon needed.

# Setup

## Latest releases 🛠

- Kotlin Next Gen | [v5.3.3](https://github.com/mikepenz/Android-Iconics/tree/v5.3.3)
- Kotlin | [v4.0.2](https://github.com/mikepenz/Android-Iconics/tree/v4.0.2)
- Kotlin Next Gen | [v5.3.4](https://github.com/mikepenz/Android-Iconics/tree/v5.3.4)
- Kotlin | [v4.0.2](https://github.com/mikepenz/Android-Iconics/tree/v4.0.2)
- Java AndroidX | [v3.2.5](https://github.com/mikepenz/Android-Iconics/tree/v3.2.5)
- Java Appcompat | [v3.0.4](https://github.com/mikepenz/Android-Iconics/tree/v3.0.4)

Expand Down Expand Up @@ -94,11 +95,13 @@ implementation 'com.mikepenz:ionicons-typeface:2.0.1.7-kotlin@aar'
implementation 'com.mikepenz:pixeden-7-stroke-typeface:1.2.0.5-kotlin@aar'
implementation 'com.mikepenz:material-design-icons-dx-typeface:5.0.1.2-kotlin@aar'
implementation 'com.mikepenz:phosphor-typeface:1.0.0.0-kotlin@aar'
implementation 'com.mikepenz:simple-icons-typeface:17.0.0.2@aar'
```

## Note

⚠️ The fonts use the `jetpack startup` library to automatically register themself. If `jetpack startup` is disabled, it is required to manually register the fonts. Please find additional details in the [Register fonts](#register-fonts).
⚠️ The fonts use the `jetpack startup` library to automatically register themselves. If `jetpack startup` is disabled,
it is required to manually register the fonts. Please find additional details in the [Register fonts](#register-fonts).

# Usage
## Use as drawable
Expand Down Expand Up @@ -202,25 +205,29 @@ Image(
![Image](https://raw.githubusercontent.com/mikepenz/Android-Iconics/develop/DEV/github/screenshots1.jpg)

# Available fonts
|Link|Prefix|Dependency|
|---|---|---|
|[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'|
|[Material Design Iconic Font](http://zavoloklom.github.io/material-design-iconic-font) **Google Material Iconic**|gmi|implementation 'com.mikepenz:material-design-iconic-typeface:+@aar'|
|[Fontawesome](https://fontawesome.com/)|faw|implementation 'com.mikepenz:fontawesome-typeface:+@aar'|
|[FontawesomeBrand](https://fontawesome.com/)|fab|implementation 'com.mikepenz:fontawesome-typeface:+@aar'|
|[FontawesomeRegular](https://fontawesome.com/)|far|implementation 'com.mikepenz:fontawesome-typeface:+@aar'|
|[Meteocons](http://www.alessioatzeni.com/meteocons/)|met|implementation 'com.mikepenz:meteocons-typeface:+@aar'|
|[Octicons](https://github.com/github/octicons)|oct|implementation 'com.mikepenz:octicons-typeface:+@aar'|
|[Community Material](http://materialdesignicons.com/)|cmd|implementation 'com.mikepenz:community-material-typeface:+@aar'|
|[Weather Icons](https://erikflowers.github.io/weather-icons/)|wic|implementation 'com.mikepenz:weather-icons-typeface:+@aar'|
|[Typeicons](http://typicons.com/)|typ|implementation 'com.mikepenz:typeicons-typeface:+@aar'|
|[Entypo](http://www.entypo.com/)|ent|implementation 'com.mikepenz:entypo-typeface:+@aar'|
|[Devicon](http://devicon.fr/)|dev|implementation 'com.mikepenz:devicon-typeface:+@aar'|
|[Foundation Icons](https://github.com/zurb/foundation-icon-fonts)|fou|implementation 'com.mikepenz:foundation-icons-typeface:+@aar'|
|[Ionicons](http://ionicons.com/)|ion|implementation 'com.mikepenz:ionicons-typeface:+@aar'|
|[Pixden7Stroke](http://themes-pixeden.com/font-demos/7-stroke/)|pe7|implementation 'com.mikepenz:pixeden-7-stroke-typeface:+@aar'|
|[Material Design DX](https://jossef.github.io/material-design-icons-iconfont/)|cmf|implementation 'com.mikepenz:material-design-icons-dx-typeface:+@aar'|
|[Phosphor Icons](https://phosphoricons.com/)|pho|implementation 'com.mikepenz:phosphor-typeface:+@aar'|

| Link | Prefix | Dependency |
|-------------------------------------------------------------------------------------------------------------------|-----------------|---------------------------------------------------------------------------------------|
| [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' |
| [Material Design Iconic Font](http://zavoloklom.github.io/material-design-iconic-font) **Google Material
Iconic** | gmi | implementation 'com.mikepenz:material-design-iconic-typeface:+@aar' |
| [Fontawesome](https://fontawesome.com/) | faw | implementation 'com.mikepenz:fontawesome-typeface:+@aar' |
| [FontawesomeBrand](https://fontawesome.com/) | fab | implementation 'com.mikepenz:fontawesome-typeface:+@aar' |
| [FontawesomeRegular](https://fontawesome.com/) | far | implementation 'com.mikepenz:fontawesome-typeface:+@aar' |
| [Meteocons](http://www.alessioatzeni.com/meteocons/) | met | implementation 'com.mikepenz:meteocons-typeface:+@aar' |
| [Octicons](https://github.com/github/octicons) | oct | implementation 'com.mikepenz:octicons-typeface:+@aar' |
| [Community Material](http://materialdesignicons.com/) | cmd | implementation 'com.mikepenz:community-material-typeface:+@aar' |
| [Weather Icons](https://erikflowers.github.io/weather-icons/) | wic | implementation 'com.mikepenz:weather-icons-typeface:+@aar' |
| [Typeicons](http://typicons.com/) | typ | implementation 'com.mikepenz:typeicons-typeface:+@aar' |
| [Entypo](http://www.entypo.com/) | ent | implementation 'com.mikepenz:entypo-typeface:+@aar' |
| [Devicon](http://devicon.fr/) | dev | implementation 'com.mikepenz:devicon-typeface:+@aar' |
| [Foundation Icons](https://github.com/zurb/foundation-icon-fonts) | fou | implementation 'com.mikepenz:foundation-icons-typeface:+@aar' |
| [Ionicons](http://ionicons.com/) | ion | implementation 'com.mikepenz:ionicons-typeface:+@aar' |
| [Pixden7Stroke](http://themes-pixeden.com/font-demos/7-stroke/) | pe7 | implementation 'com.mikepenz:pixeden-7-stroke-typeface:+@aar' |
| [Material Design DX](https://jossef.github.io/material-design-icons-iconfont/) | cmf | implementation 'com.mikepenz:material-design-icons-dx-typeface:+@aar' |
| [Phosphor Icons](https://phosphoricons.com/) | pho | implementation 'com.mikepenz:phosphor-typeface:+@aar' |
| [Simple Icons](https://simpleicons.org/) | sim | implementation 'com.mikepenz:simple-icons-typeface:+@aar' |

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

Expand Down
1 change: 1 addition & 0 deletions app/build.gradle
Expand Up @@ -134,6 +134,7 @@ dependencies {
implementation project(':octicons-typeface-library')
implementation project(':phosphor-typeface-library')
implementation project(':pixeden-7-stroke-typeface-library')
implementation project(':simple-icons-typeface-library')
implementation project(':typeicons-typeface-library')
implementation project(':weather-icons-typeface-library')

Expand Down
24 changes: 12 additions & 12 deletions build.gradle
Expand Up @@ -18,37 +18,37 @@ buildscript {

ext {
release = [
versionName: "5.3.3",
versionCode: 50303
versionName: "5.3.4",
versionCode: 50304
]

setup = [
compileSdk : 31,
buildTools : "31.0.0",
buildTools : "33.0.0",
minSdk : 16,
composeMinSdk: 21,
targetSdk : 30
]

versions = [
kotlin : '1.5.31',
kotlin : '1.6.10',
androidX : '1.0.0',
recyclerView : '1.2.1',
material : '1.5.0-beta01',
appcompat : '1.3.1',
material : '1.6.1',
appcompat : '1.4.2',
drawerlayout : '1.1.0',
constraintLayout: '2.0.4',
cardview : '1.0.0',
ktx : [
core: '1.7.0'
core: '1.8.0'
],
startup : '1.1.0',
detekt : '1.18.1',
aboutLibraries : '10.0.0-a04',
materialDrawer : '9.0.0-a02',
fastAdapter : '5.5.1',
aboutLibraries : '10.3.1',
materialDrawer : '9.0.0',
fastAdapter : '5.6.0',
// compose
compose : '1.0.5'
compose : '1.1.1'
]
}

Expand All @@ -61,7 +61,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.2.0-alpha04'
classpath 'com.android.tools.build:gradle:7.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${versions.detekt}"
classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:${versions.aboutLibraries}"
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
10 changes: 5 additions & 5 deletions gradlew
@@ -1,7 +1,7 @@
#!/bin/sh

#
# Copyright ? 2015-2021 the original authors.
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,10 +32,10 @@
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions ?$var?, ?${var}?, ?${var:-default}?, ?${var+SET}?,
# ?${var#prefix}?, ?${var%suffix}?, and ?$( cmd )?;
# * compound commands having a testable exit status, especially ?case?;
# * various built-in commands including ?command?, ?set?, and ?ulimit?.
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
Expand Down
2 changes: 1 addition & 1 deletion iconics-compose/build.gradle
Expand Up @@ -69,4 +69,4 @@ dependencies {

implementation "androidx.compose.ui:ui:${versions.compose}"
implementation "androidx.compose.foundation:foundation:${versions.compose}"
}
}
3 changes: 2 additions & 1 deletion settings.gradle
Expand Up @@ -44,4 +44,5 @@ include ':octicons-typeface-library'
include ':phosphor-typeface-library'
include ':pixeden-7-stroke-typeface-library'
include ':typeicons-typeface-library'
include ':weather-icons-typeface-library'
include ':weather-icons-typeface-library'
include ':simple-icons-typeface-library'
48 changes: 48 additions & 0 deletions simple-icons-typeface-library/build.gradle
@@ -0,0 +1,48 @@
/*
* Copyright 2019 Mike Penz
*
* 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.
*/

apply plugin: 'com.android.library'

apply plugin: 'kotlin-android'

android {
compileSdkVersion setup.compileSdk
buildToolsVersion setup.buildTools

defaultConfig {
minSdkVersion setup.minSdk
targetSdkVersion setup.targetSdk
consumerProguardFiles 'consumer-proguard-rules.pro'
versionCode 170002
versionName "17.0.0.2"

resValue "string", "Simple_Icons_version", "${versionName}"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
if (project.hasProperty('pushall') || project.hasProperty('simpleicons')) {
apply from: '../gradle-release.gradle'
}

dependencies {
implementation project(':iconics-typeface-api')
}

1 change: 1 addition & 0 deletions simple-icons-typeface-library/consumer-proguard-rules.pro
@@ -0,0 +1 @@
-keep class com.mikepenz.iconics.typeface.library.simpleicons.SimpleIcons { *; }
18 changes: 18 additions & 0 deletions simple-icons-typeface-library/gradle.properties
@@ -0,0 +1,18 @@
#
# Copyright 2019 Mike Penz
#
# 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.
#
POM_NAME=Android-Iconics Simple Icons Typeface Library
POM_ARTIFACT_ID=simple-icons-typeface
POM_PACKAGING=aar
33 changes: 33 additions & 0 deletions simple-icons-typeface-library/src/main/AndroidManifest.xml
@@ -0,0 +1,33 @@
<!--
~ Copyright (c) 2019 Mike Penz
~
~ 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.
-->

<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.mikepenz.iconics.typeface.library.simpleicons">

<application>
<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
android:exported="false"
tools:node="merge">
<meta-data
android:name="com.mikepenz.iconics.typeface.library.simpleicons.Initializer"
android:value="androidx.startup"/>
</provider>
</application>
</manifest>
@@ -0,0 +1,18 @@
package com.mikepenz.iconics.typeface.library.simpleicons

import android.content.Context
import androidx.startup.Initializer
import com.mikepenz.iconics.typeface.ITypeface
import com.mikepenz.iconics.typeface.IconicsHolder
import com.mikepenz.iconics.typeface.IconicsInitializer

class Initializer : Initializer<ITypeface> {
override fun create(context: Context): ITypeface {
IconicsHolder.registerFont(SimpleIcons)
return SimpleIcons
}

override fun dependencies(): List<Class<out Initializer<*>>> {
return listOf(IconicsInitializer::class.java)
}
}

0 comments on commit f93fbe6

Please sign in to comment.