Commit 7f695622 authored by Sai Srinivas's avatar Sai Srinivas
Browse files

jks file

parent c2698f96
import java.util.Properties
import java.io.FileInputStream
plugins { plugins {
id("com.android.application") id("com.android.application")
id("kotlin-android") id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin") id("dev.flutter.flutter-gradle-plugin")
} }
val localProperties = Properties()
val localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {
FileInputStream(localPropertiesFile).use { stream ->
localProperties.load(stream)
}
}
val keystoreProperties = Properties()
val keystorePropertiesFile = rootProject.file("key.properties")
if (keystorePropertiesFile.exists()) {
FileInputStream(keystorePropertiesFile).use { stream ->
keystoreProperties.load(stream)
}
}
android { android {
namespace = "in.webgrid.pulse" namespace = "in.webgrid.pulse"
...@@ -30,11 +48,20 @@ android { ...@@ -30,11 +48,20 @@ android {
versionName = flutter.versionName versionName = flutter.versionName
} }
signingConfigs {
create("release") {
keyAlias = keystoreProperties["keyAlias"]?.toString()
keyPassword= keystoreProperties["keyPassword"]?.toString()
storeFile= keystoreProperties["storeFile"]?.toString() ?.let { file(it) }
storePassword= keystoreProperties["storePassword"]?.toString()
}
}
buildTypes { buildTypes {
release { release {
// TODO: Add your own signing config for the release build. // TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works. // Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug") signingConfig = signingConfigs.getByName("release")
} }
} }
} }
......
buildscript {
dependencies {
classpath("com.android.tools.build:gradle:8.6.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0")
classpath("com.google.gms:google-services:4.4.2")
}
repositories {
google()
mavenCentral()
}
}
allprojects { allprojects {
repositories { repositories {
google() google()
......
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:pulse/Screens/home_screen.dart'; import 'package:pulse/Screens/home_screen.dart';
import 'package:pulse/utils/AppColors.dart';
import 'package:pulse/utils/SharedpreferencesService.dart'; import 'package:pulse/utils/SharedpreferencesService.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
......
File added
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment