You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
3.6 KiB
Groovy
119 lines
3.6 KiB
Groovy
def localProperties = new Properties()
|
|
def localPropertiesFile = rootProject.file('local.properties')
|
|
if (localPropertiesFile.exists()) {
|
|
localPropertiesFile.withReader('UTF-8') { reader ->
|
|
localProperties.load(reader)
|
|
}
|
|
}
|
|
|
|
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
|
if (flutterRoot == null) {
|
|
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
|
}
|
|
|
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
|
if (flutterVersionCode == null) {
|
|
flutterVersionCode = '1'
|
|
}
|
|
|
|
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
|
if (flutterVersionName == null) {
|
|
flutterVersionName = '1.0'
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
|
|
android {
|
|
compileSdkVersion 34
|
|
|
|
signingConfigs {
|
|
release {
|
|
storeFile file('/Users/mohamedmekawy/Documents/Work/DoctorApp/android/doctor_app_key')
|
|
storePassword 'Hmgdoctor1234'
|
|
keyAlias 'hmgdoctor'
|
|
keyPassword 'Hmgdoctor1234'
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
}
|
|
|
|
lintOptions {
|
|
disable 'InvalidPackage'
|
|
}
|
|
|
|
defaultConfig {
|
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
applicationId "com.hmg.hmgDr"
|
|
minSdkVersion 21
|
|
targetSdkVersion 34
|
|
versionCode flutterVersionCode.toInteger()
|
|
versionName flutterVersionName
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
multiDexEnabled true
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
// TODO: Add your own signing config for the release build.
|
|
signingConfig signingConfigs.debug
|
|
|
|
}
|
|
debug {
|
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
|
|
// flavorDimensions 'environment'
|
|
// productFlavors {
|
|
// production {
|
|
// dimension 'environment'
|
|
// }
|
|
// }
|
|
//
|
|
// configurations {
|
|
// productionDebugImplementation
|
|
// productionReleaseImplementation
|
|
// }
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
}
|
|
|
|
flutter {
|
|
source '../..'
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test:runner:1.1.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
|
|
|
//openTok
|
|
implementation 'com.opentok.android:opentok-android-sdk:2.20.1'
|
|
//permissions
|
|
// implementation 'pub.devrel:easypermissions:0.4.0'
|
|
implementation project(':easypermissions')
|
|
|
|
//retrofit
|
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
|
|
implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
|
|
implementation 'com.android.support:multidex:1.0.3'
|
|
implementation 'com.google.firebase:firebase-analytics:17.4.1'
|
|
}
|
|
apply plugin: 'com.google.gms.google-services' |