Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Oct 21, 2022
1 parent 696fdda commit 6fb954b
Show file tree
Hide file tree
Showing 41 changed files with 1,146 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# FlashDim
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
65 changes: 65 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
}

android {
// signingConfigs {
// Properties properties = new Properties()
// properties.load(project.rootProject.file('local.properties').newDataInputStream())
//
// signingConf1 {
// storeFile file(properties.getProperty("signing.file"))
// storePassword properties.getProperty("signing.password")
// keyAlias properties.getProperty("signing.key1.alias")
// keyPassword properties.getProperty("signing.key1.password")
// }
// signingConf2 {
// storeFile file(properties.getProperty("signing.file"))
// storePassword properties.getProperty("signing.password")
// keyAlias properties.getProperty("signing.key2.alias")
// keyPassword properties.getProperty("signing.key2.password")
// }
// }

compileSdk 33

defaultConfig {
applicationId "com.cyb3rko.flashdim"
minSdk 33
targetSdk 33
versionCode 1
versionName "1.0.0"
}
buildTypes {
debug {
versionNameSuffix "-debug"
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
releaseGP {
versionNameSuffix "-googleplay"
minifyEnabled true
shrinkResources true
// signingConfig signingConfigs.signingConf1
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
releaseFD {
versionNameSuffix "-fdroid"
minifyEnabled true
shrinkResources true
// signingConfig signingConfigs.signingConf2
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
viewBinding true
}
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'com.google.android.material:material:1.8.0-alpha01'
}
21 changes: 21 additions & 0 deletions app/proguard-rules.pro
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
27 changes: 27 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.cyb3rko.flashdim">

<application
android:name=".App"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:supportsRtl="false"
android:theme="@style/AppTheme">
<activity
android:name="com.cyb3rko.flashdim.MainActivity"
android:fitsSystemWindows="true"
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
Binary file added app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions app/src/main/java/com/cyb3rko/flashdim/App.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.cyb3rko.flashdim

import android.app.Application
import com.google.android.material.color.DynamicColors

class App : Application() {
override fun onCreate() {
DynamicColors.applyToActivitiesIfAvailable(this)
super.onCreate()
}
}
Loading

0 comments on commit 6fb954b

Please sign in to comment.