you've been waiting for this moment for so long

This commit is contained in:
Kuba Szczodrzyński
2019-09-18 22:29:09 +02:00
parent e2c92c3db5
commit 31588731da
758 changed files with 87594 additions and 0 deletions

51
szkolny-font/build.gradle Normal file
View File

@ -0,0 +1,51 @@
/*
* Copyright 2014 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 rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
consumerProguardFiles 'consumer-proguard-rules.pro'
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debugMinify {
debuggable = true
minifyEnabled = true
proguardFiles 'proguard-android.txt'
}
}
}
if (project.hasProperty('pushall') || project.hasProperty('SzkolnyFontonly')) {
apply from: '../gradle-mvn-push.gradle'
}
dependencies {
implementation "com.mikepenz:iconics-core:${iconics}"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

View File

@ -0,0 +1 @@
-keep class com.mikepenz.iconics.typeface.library.szkolny.font.SzkolnyFont { *; }

View File

@ -0,0 +1,40 @@
#
# Copyright 2014 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.
#
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Settings specified in this file will override any Gradle settings
# configured through the IDE.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# 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.0
VERSION_CODE=1
POM_NAME=Android-Iconics Szkolny.eu Icon Font Typeface Library
POM_ARTIFACT_ID=szkolny-font-typeface
POM_PACKAGING=aar

View File

@ -0,0 +1,19 @@
<!--
~ Copyright 2014 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 package="com.mikepenz.iconics.typeface.library.szkolny">
<application/>
</manifest>

View File

@ -0,0 +1,80 @@
/*
* Copyright 2014 Mike Penz
* Copyright 2015 Haruki Hasegawa
*
* 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.
*/
package com.mikepenz.iconics.typeface.library.szkolny.font
import com.mikepenz.iconics.typeface.IIcon
import com.mikepenz.iconics.typeface.ITypeface
import com.mikepenz.iconics.typeface.library.szkolny.R
import java.util.LinkedList
@Suppress("EnumEntryName")
object SzkolnyFont : ITypeface {
override val fontRes: Int
get() = R.font.szkolny_font_font_v1_0
override val characters: Map<String, Char> by lazy {
mutableMapOf<String, Char>().apply {
SzkolnyFont.Icon.values().associateTo(this) { it.name to it.character }
//Icon2.values().associateTo(this) { it.name to it.character }
}
}
override val mappingPrefix: String
get() = "szf"
override val fontName: String
get() = "Szkolny Font"
override val version: String
get() = "1.0"
override val iconCount: Int
get() = characters.size
override val icons: List<String>
get() = characters.keys.toCollection(LinkedList())
override val author: String
get() = "Kuba"
override val url: String
get() = ""
override val description: String
get() = ""
override val license: String
get() = ""
override val licenseUrl: String
get() = ""
override fun getIcon(key: String): IIcon {
return SzkolnyFont.Icon.valueOf(key)
}
enum class Icon constructor(override val character: Char) : IIcon {
szf_eye_check('\ue800'),
szf_calendar_off('\ue801'),
szf_file_document_edit('\ue802'),
szf_message_off('\ue803'),
szf_numeric_0_box_multiple_outline_off('\ue804');
override val typeface: ITypeface by lazy { SzkolnyFont }
}
}

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<resources></resources>