-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6cd6936
commit 05a5fa5
Showing
64 changed files
with
1,728 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Built application files | ||
*.apk | ||
*.ap_ | ||
|
||
# Files for the ART/Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
out/ | ||
|
||
# Gradle files | ||
.gradle/ | ||
build/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Log Files | ||
*.log | ||
|
||
# Android Studio Navigation editor temp files | ||
.navigation/ | ||
|
||
# Android Studio captures folder | ||
captures/ | ||
|
||
# Intellij | ||
*.iml | ||
.idea/workspace.xml | ||
|
||
# Keystore files | ||
*.jks | ||
|
||
# Built application files | ||
/*/build/ | ||
|
||
# Crashlytics configuations | ||
com_crashlytics_export_strings.xml | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Gradle generated files | ||
.gradle/ | ||
|
||
# Signing files | ||
.signing/ | ||
|
||
# User-specific configurations | ||
.idea/libraries/ | ||
.idea/inspectionProfiles/ | ||
.idea/workspace.xml | ||
.idea/tasks.xml | ||
.idea/.name | ||
.idea/compiler.xml | ||
.idea/copyright/profiles_settings.xml | ||
.idea/encodings.xml | ||
.idea/misc.xml | ||
.idea/modules.xml | ||
.idea/kotlinc.xml | ||
.idea/scopes/scope_settings.xml | ||
.idea/vcs.xml | ||
*.iml | ||
|
||
# OS-specific files | ||
.DS_Store | ||
.DS_Store? | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
|
||
!APK/* | ||
!AAR/* | ||
!readme/* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Built application files | ||
*.apk | ||
*.ap_ | ||
|
||
# Files for the ART/Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
out/ | ||
|
||
# Gradle files | ||
.gradle/ | ||
build/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Log Files | ||
*.log | ||
|
||
# Android Studio Navigation editor temp files | ||
.navigation/ | ||
|
||
# Android Studio captures folder | ||
captures/ | ||
|
||
# Intellij | ||
*.iml | ||
.idea/workspace.xml | ||
|
||
# Keystore files | ||
*.jks | ||
|
||
# Built application files | ||
/*/build/ | ||
|
||
# Crashlytics configuations | ||
com_crashlytics_export_strings.xml | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Gradle generated files | ||
.gradle/ | ||
|
||
# Signing files | ||
.signing/ | ||
|
||
# User-specific configurations | ||
.idea/libraries/ | ||
.idea/inspectionProfiles/ | ||
.idea/workspace.xml | ||
.idea/tasks.xml | ||
.idea/.name | ||
.idea/compiler.xml | ||
.idea/copyright/profiles_settings.xml | ||
.idea/encodings.xml | ||
.idea/misc.xml | ||
.idea/modules.xml | ||
.idea/kotlinc.xml | ||
.idea/scopes/scope_settings.xml | ||
.idea/vcs.xml | ||
*.iml | ||
|
||
# OS-specific files | ||
.DS_Store | ||
.DS_Store? | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
|
||
!APK/* | ||
!AAR/* | ||
!readme/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
apply plugin: 'kotlin-android' | ||
|
||
apply plugin: 'kotlin-android-extensions' | ||
|
||
android { | ||
compileSdkVersion 26 | ||
buildToolsVersion "26.0.1" | ||
defaultConfig { | ||
applicationId "ncatz.jvm.jodergenerator" | ||
minSdkVersion 16 | ||
targetSdkVersion 26 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
maven { url "https://jitpack.io" } | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" | ||
implementation 'com.android.support:appcompat-v7:26.0.2' | ||
implementation 'com.android.support.constraint:constraint-layout:1.0.2' | ||
|
||
compile 'com.github.linger1216:labelview:v1.1.2' | ||
//https://github.com/linger1216/labelview | ||
|
||
compile 'com.sdsmdg.harjot:rotatingtext:1.0.2' | ||
//https://github.com/sdsmdg/RotatingText | ||
|
||
compile 'com.github.Yalantis:GuillotineMenu-Android:1.2' | ||
//https://github.com/Yalantis/GuillotineMenu-Android | ||
|
||
compile 'com.getbase:floatingactionbutton:1.10.1' | ||
//https://github.com/futuresimple/android-floating-action-button | ||
|
||
compile 'com.github.bassaer:materialdesigncolors:1.0.0' | ||
//https://github.com/bassaer/MaterialDesignColors | ||
|
||
compile "org.jetbrains.anko:anko:0.10.1" | ||
//https://github.com/Kotlin/anko | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="ncatz.jvm.jodergenerator"> | ||
|
||
<application | ||
android:name=".App" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:screenOrientation="portrait" | ||
android:windowSoftInputMode="adjustPan"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name=".InfoActivity"></activity> | ||
</application> | ||
|
||
</manifest> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package ncatz.jvm.jodergenerator | ||
|
||
import android.app.Application | ||
import android.content.Context | ||
import android.graphics.Typeface | ||
|
||
class App : Application() { | ||
companion object { | ||
lateinit var canaroExtraBold: Typeface | ||
} | ||
|
||
override fun getApplicationContext(): Context { | ||
return super.getApplicationContext() | ||
} | ||
|
||
private val CANARO_EXTRA_BOLD = "fonts/canaro_extra_bold.otf" | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
initTypeface() | ||
} | ||
|
||
private fun initTypeface() { | ||
canaroExtraBold = Typeface.createFromAsset(assets, CANARO_EXTRA_BOLD) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package ncatz.jvm.jodergenerator | ||
|
||
import android.content.Context | ||
import android.support.v7.widget.AppCompatTextView | ||
import android.util.AttributeSet | ||
|
||
class CanaroText : AppCompatTextView { | ||
constructor(context: Context) : this(context, null) | ||
constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0) | ||
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) { | ||
setTypeface(App.canaroExtraBold) | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
app/src/main/java/ncatz/jvm/jodergenerator/InfoActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package ncatz.jvm.jodergenerator | ||
|
||
import android.content.Intent | ||
import android.net.Uri | ||
import android.support.v7.app.AppCompatActivity | ||
import android.os.Bundle | ||
import android.widget.LinearLayout | ||
|
||
class InfoActivity : AppCompatActivity() { | ||
|
||
private lateinit var twitter_kast: LinearLayout | ||
private lateinit var git_kast: LinearLayout | ||
private lateinit var twitter_alex: LinearLayout | ||
private lateinit var git_alex: LinearLayout | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_info) | ||
|
||
twitter_kast = findViewById(R.id.twk) | ||
git_kast = findViewById(R.id.gitk) | ||
twitter_alex = findViewById(R.id.twa) | ||
git_alex = findViewById(R.id.gita) | ||
twitter_kast.setOnClickListener { open("https://twitter.com/KastJMD") } | ||
git_kast.setOnClickListener { open("https://github.com/JMedinilla/JODERKotlin") } | ||
twitter_alex.setOnClickListener { open("https://twitter.com/AlexPowerUp") } | ||
git_alex.setOnClickListener { open("https://github.com/alexpowerup/JODERGenerator") } | ||
} | ||
|
||
private fun open(url: String) { | ||
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(url))) | ||
} | ||
} |
Oops, something went wrong.