Skip to content

Commit

Permalink
upgraded gradle plugin and added keystore
Browse files Browse the repository at this point in the history
  • Loading branch information
its-me-debk007 committed Jan 15, 2023
1 parent e7e2dd9 commit b486a3b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
.externalNativeBuild
.cxx
local.properties
keystore
15 changes: 12 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ android {
signingConfigs {
build_signed_apk {

def localProperties = new Properties()
localProperties.load(new FileInputStream(rootProject.file("local.properties")))

storeFile file('..\\keystore\\keystore.jks')
storePassword localProperties['SIGNING_STORE_PASSWORD']
keyAlias localProperties['SIGNING_KEY_ALIAS']
keyPassword localProperties['SIGNING_KEY_PASSWORD']
}
}

Expand All @@ -18,12 +25,14 @@ android {
minSdk 23
targetSdk 33
versionCode 3
versionName "v2.4.1"
versionName "v1.1.2"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}

signingConfig signingConfigs.build_signed_apk
}

buildTypes {
Expand Down Expand Up @@ -57,7 +66,7 @@ dependencies {
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
implementation 'androidx.activity:activity-compose:1.6.1'
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation "androidx.compose.ui:ui:1.3.3"
implementation "androidx.compose.ui:ui-tooling-preview:1.3.3"
implementation 'androidx.compose.material3:material3:1.0.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,6 @@ class MainActivity : ComponentActivity() {
finishAffinity()
}

// private fun setAllTypeOfTones() {
// val ringtoneUri = Uri.parse("android.resource://$packageName/raw/sound")
// RingtoneManager.setActualDefaultRingtoneUri(
// this,
// RingtoneManager.TYPE_ALL,
// ringtoneUri
// )
// }

private fun setRingTone() {
val ringtoneUri = Uri.parse("android.resource://$packageName/raw/sound")
RingtoneManager.setActualDefaultRingtoneUri(
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.3.1' apply false
id 'com.android.library' version '7.3.1' apply false
id 'com.android.application' version '7.4.0' apply false
id 'com.android.library' version '7.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Dec 17 18:59:11 IST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit b486a3b

Please sign in to comment.