Skip to content

Commit

Permalink
Add namespace to build.gradle (#290)
Browse files Browse the repository at this point in the history
Co-authored-by: Rita Zerrizuela <zeta@widcket.com>
  • Loading branch information
poovamraj and Widcket committed Jul 12, 2023
1 parent f165559 commit 4613367
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions auth0_flutter/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
group 'com.auth0.auth0_flutter'
def libApplicationId = 'com.auth0.auth0_flutter'

group libApplicationId
version '1.0-SNAPSHOT'

buildscript {
Expand Down Expand Up @@ -26,7 +28,9 @@ apply plugin: 'kotlin-android'

android {
compileSdkVersion 31

if (project.android.hasProperty("namespace")) {
namespace libApplicationId
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Expand Down
7 changes: 5 additions & 2 deletions auth0_flutter/example/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
def exampleAppApplicationId = 'com.auth0.auth0_flutter_example'
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
Expand Down Expand Up @@ -31,7 +32,9 @@ jacoco {

android {
compileSdk 31

if (project.android.hasProperty("namespace")) {
namespace exampleAppApplicationId
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Expand All @@ -48,7 +51,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.auth0.auth0_flutter_example"
applicationId exampleAppApplicationId
minSdkVersion 21
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
Expand Down

0 comments on commit 4613367

Please sign in to comment.