From 16e924a123b47c753d561edf46976cb97eacbbf4 Mon Sep 17 00:00:00 2001 From: David Antoon Date: Thu, 23 Nov 2023 22:49:35 +0200 Subject: [PATCH] fix build gradle --- android/build.gradle | 27 ------------------------- android/src/main/AndroidManifest.xml | 23 +++++++-------------- build.gradle | 2 ++ multi-region/build.gradle | 30 ++++++---------------------- settings.gradle | 1 + 5 files changed, 16 insertions(+), 67 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 6c08db4..d0b48f4 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -109,30 +109,3 @@ afterEvaluate { } } -// Define the modifyManifest function -ext.modifyManifest = { param1, param2 -> - // Task to modify the manifest - def manifestFile = android.sourceSets.main.manifest.srcFile - def parsedXml = new XmlParser().parse(manifestFile) - - - print("Params, ${param1} , ${param2}") -} - -//ext { -// modifyManifest = { param1, param2 -> -// // Task to modify the manifest -// doLast { -// def manifestFile = android.sourceSets.main.manifest.srcFile -// def parsedXml = new XmlParser().parse(manifestFile) -// -// // Example of modification based on parameters -// if (param1) { -// parsedXml.application[0].activity[0].@android:name = param2 -// } -// -// // Save the modified XML back to the manifest file -// new XmlNodePrinter(new PrintWriter(manifestFile)).print(parsedXml) -// } -// } -//} \ No newline at end of file diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 6b78cff..9058bbe 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -15,22 +15,13 @@ - - - - - - - - - - - - - - - - + + + + + + + diff --git a/build.gradle b/build.gradle index 53f6ea1..ba9ac0d 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,8 @@ plugins { id 'com.android.library' version '7.4.2' apply false id 'org.jetbrains.kotlin.android' version '1.9.10' apply false } + + ext { kotlinVersion = "1.7.10" buildToolsVersion = "32.0.0" diff --git a/multi-region/build.gradle b/multi-region/build.gradle index 43c3868..f3178a2 100644 --- a/multi-region/build.gradle +++ b/multi-region/build.gradle @@ -7,7 +7,6 @@ plugins { def fronteggDomain = "auth.davidantoon.me" def fronteggClientId = "b6adfe4c-d695-4c04-b95f-3ec9fd0c6cca" - android { namespace 'com.frontegg.demo' compileSdk 34 @@ -15,24 +14,21 @@ android { defaultConfig { applicationId "com.frontegg.demo" minSdk 26 - targetSdk 33 + targetSdk 34 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - vectorDrawables { - useSupportLibrary true - } - manifestPlaceholders = [ - "package_name" : applicationId, - "frontegg_domain" : fronteggDomain, + "package_name" : applicationId, + "frontegg_domain" : fronteggDomain, "frontegg_client_id": fronteggClientId ] buildConfigField "String", 'FRONTEGG_DOMAIN', "\"$fronteggDomain\"" buildConfigField "String", 'FRONTEGG_CLIENT_ID', "\"$fronteggClientId\"" + } buildTypes { @@ -49,29 +45,15 @@ android { jvmTarget = '1.8' } buildFeatures { - compose true viewBinding true } - composeOptions { - kotlinCompilerExtensionVersion '1.4.3' - } - packagingOptions { - resources { - excludes += '/META-INF/{AL2.0,LGPL2.1}' - } - } buildToolsVersion buildToolsVersion -} -// -//tasks.register('hello') { -// doLast { -// modifyManifest("asdasd") -// } -//} +} dependencies { + implementation 'androidx.core:core-ktx:1.10.0' implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'io.reactivex.rxjava3:rxkotlin:3.0.1' diff --git a/settings.gradle b/settings.gradle index e58ef65..0ab64fb 100644 --- a/settings.gradle +++ b/settings.gradle @@ -19,3 +19,4 @@ include ':android' include ':app' include ':embedded' include ':multi-region' +