Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Create ProjectSetting.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback authored Mar 15, 2022
1 parent c144f93 commit 582e56c
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions buildSrc/src/main/kotlin/ProjectSetting.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* Created by faisalamir on 19/09/21
* FrogoRecyclerView
* -----------------------------------------
* Name : Muhammad Faisal Amir
* E-mail : faisalamircs@gmail.com
* Github : github.com/amirisback
* -----------------------------------------
* Copyright (C) 2021 FrogoBox Inc.
* All rights reserved
*
*/

object ProjectSetting {

// ---------------------------------------------------------------------------------------------

// Project settings
const val NAME_APP = "Frogo Piano Tiles"

const val APP_DOMAIN = "com"
const val APP_PLAY_CONSOLE = "frogobox"
const val APP_NAME = "pianogames"

const val VERSION_MAJOR = 1
const val VERSION_MINOR = 0
const val VERSION_PATCH = 0

// ---------------------------------------------------------------------------------------------

// Key Store
const val PLAYSTORE_STORE_FILE = "frogoboxmedia.jks"
const val PLAYSTORE_STORE_PASSWORD = "amirisback"
const val PLAYSTORE_KEY_ALIAS = "frogoisback"
const val PLAYSTORE_KEY_PASSWORD = "amirisback"

// ---------------------------------------------------------------------------------------------
// Default Setting - Do Not Change
// ---------------------------------------------------------------------------------------------

const val PROJECT_COMPILE_SDK = 31
const val PROJECT_MIN_SDK = 21
const val PROJECT_TARGET_SDK = PROJECT_COMPILE_SDK

// ---------------------------------------------------------------------------------------------

const val PROJECT_APP_ID = "$APP_DOMAIN.$APP_PLAY_CONSOLE.$APP_NAME"
const val PROJECT_VERSION_CODE = (VERSION_MAJOR * 100) + (VERSION_MINOR * 10) + (VERSION_PATCH * 1)
const val PROJECT_VERSION_NAME = "$VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH"

// ---------------------------------------------------------------------------------------------

// Declaration apps name debug mode
const val DEBUG_ATTRIBUTE = "Development"
const val NAME_APP_DEBUG = "$NAME_APP $DEBUG_ATTRIBUTE"

// Constant Variable
val NAME_APK = NAME_APP.toLowerCase().replace(" ", "-")
val NAME_SETTING_LOWERCASE = NAME_APP.toLowerCase().replace(" ", "_")
val NAME_SETTING_UPERCASE = NAME_APP.toUpperCase().replace(" ", "_")
val DB = "db_$NAME_SETTING_LOWERCASE.db"
val PREF_NAME = "PREF_GAME_$NAME_SETTING_UPERCASE"

}

0 comments on commit 582e56c

Please sign in to comment.