Skip to content

Commit

Permalink
chore: update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
risin42 committed Nov 7, 2024
1 parent ad3e36e commit a1e2195
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TMessagesProj/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ android {
versionName verName
versionCode verCode

def appId = ""
def appHash = ""
def appId = null
def appHash = null

//obtain your own keys at https://core.telegram.org/api/obtaining_api_id

if (properties != null) {
appId = properties.getProperty("TELEGRAM_APP_ID") ?: System.getenv("TELEGRAM_APP_ID") ?: appId
appHash = properties.getProperty("TELEGRAM_APP_HASH") ?: System.getenv("TELEGRAM_APP_HASH") ?: appHash
appId = properties.getProperty("TELEGRAM_APP_ID") ?: System.getenv("TELEGRAM_APP_ID")
appHash = properties.getProperty("TELEGRAM_APP_HASH") ?: System.getenv("TELEGRAM_APP_HASH")
}

buildConfigField "String", "BUILD_VERSION_STRING", "\"" + verName + "\""
Expand Down

0 comments on commit a1e2195

Please sign in to comment.