Skip to content

Commit 821ec83

Browse files
authored
Merge pull request #10 from MicroPyramid/dev
Dev
2 parents 632ee4c + 260af62 commit 821ec83

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2225
-708
lines changed

.flutter-plugins

Lines changed: 0 additions & 16 deletions
This file was deleted.

.flutter-plugins-dependencies

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

android/app/build.gradle

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
id "com.google.gms.google-services"
6+
}
7+
18
def localProperties = new Properties()
29
def localPropertiesFile = rootProject.file('local.properties')
310
if (localPropertiesFile.exists()) {
@@ -6,11 +13,6 @@ if (localPropertiesFile.exists()) {
613
}
714
}
815

9-
def flutterRoot = localProperties.getProperty('flutter.sdk')
10-
if (flutterRoot == null) {
11-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12-
}
13-
1416
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1517
if (flutterVersionCode == null) {
1618
flutterVersionCode = '1'
@@ -21,23 +23,28 @@ if (flutterVersionName == null) {
2123
flutterVersionName = '1.0'
2224
}
2325

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply plugin: 'com.google.gms.google-services'
27-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
28-
2926
android {
30-
compileSdkVersion 31
27+
namespace "io.bottlecrm"
28+
compileSdk 35
29+
30+
compileOptions {
31+
sourceCompatibility JavaVersion.VERSION_11
32+
targetCompatibility JavaVersion.VERSION_11
33+
}
34+
35+
kotlinOptions {
36+
jvmTarget = '11'
37+
}
3138

3239
sourceSets {
3340
main.java.srcDirs += 'src/main/kotlin'
3441
}
3542

3643
defaultConfig {
3744
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
38-
applicationId "com.example.bottle_crm"
39-
minSdkVersion 21
40-
targetSdkVersion 31
45+
applicationId "io.bottlecrm"
46+
minSdkVersion 23
47+
targetSdkVersion 35
4148
multiDexEnabled true
4249
versionCode flutterVersionCode.toInteger()
4350
versionName flutterVersionName
@@ -58,6 +65,6 @@ flutter {
5865

5966
dependencies {
6067
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
61-
implementation platform('com.google.firebase:firebase-bom:29.1.0')
68+
implementation platform('com.google.firebase:firebase-bom:33.7.0')
6269
implementation 'com.google.firebase:firebase-analytics'
6370
}

android/app/google-services.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"client_info": {
1010
"mobilesdk_app_id": "1:74115878447:android:858fb769df26bb2c5900da",
1111
"android_client_info": {
12-
"package_name": "com.example.bottle_crm"
12+
"package_name": "io.bottlecrm"
1313
}
1414
},
1515
"oauth_client": [

android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.bottle_crm">
2+
package="io.bottlecrm">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->

android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.bottle_crm">
2+
package="io.bottlecrm">
33

44
<uses-permission android:name="android.permission.INTERNET"/>
5+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
56

67
<application
78
android:label="Bottle CRM"
89
android:icon="@mipmap/launcher_icon"
9-
android:usesCleartextTraffic="true">
10+
android:usesCleartextTraffic="true"
11+
android:enableOnBackInvokedCallback="true">
1012
<activity
1113
android:exported="true"
1214
android:name=".MainActivity"

android/app/src/main/kotlin/com/example/bottle_crm/MainActivity.kt renamed to android/app/src/main/kotlin/io/bottlecrm/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.bottle_crm
1+
package io.bottlecrm
22

33
import io.flutter.embedding.android.FlutterActivity
44

android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.bottle_crm">
2+
package="io.bottlecrm">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->

android/build.gradle

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,41 @@
11
buildscript {
2-
ext.kotlin_version = '1.6.10'
2+
ext.kotlin_version = '2.1.0'
33
repositories {
44
google()
5-
jcenter()
5+
mavenCentral()
66
maven { url 'https://jitpack.io' }
77
}
88

99
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.0.2'
10+
classpath 'com.android.tools.build:gradle:8.7.3'
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12-
classpath 'com.google.gms:google-services:4.3.10'
12+
classpath 'com.google.gms:google-services:4.4.2'
1313
}
1414
}
1515

1616
allprojects {
1717
repositories {
1818
google()
19-
jcenter()
19+
mavenCentral()
20+
}
21+
}
22+
23+
subprojects {
24+
afterEvaluate { project ->
25+
if (project.hasProperty("android")) {
26+
project.android {
27+
compileOptions {
28+
sourceCompatibility JavaVersion.VERSION_11
29+
targetCompatibility JavaVersion.VERSION_11
30+
}
31+
}
32+
}
33+
34+
project.tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
35+
kotlinOptions {
36+
jvmTarget = '11'
37+
}
38+
}
2039
}
2140
}
2241

@@ -26,6 +45,6 @@ subprojects {
2645
project.evaluationDependsOn(':app')
2746
}
2847

29-
task clean(type: Delete) {
30-
delete rootProject.buildDir
48+
tasks.register("clean", Delete) {
49+
delete rootProject.layout.buildDirectory
3150
}

android/gradle.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
org.gradle.jvmargs=-Xmx1536M
1+
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
android.enableR8=true
5+
android.nonTransitiveRClass=true
6+
android.nonFinalResIds=false

0 commit comments

Comments
 (0)