Skip to content

Commit 917d4a6

Browse files
committed
v1.0.5
1 parent b03b127 commit 917d4a6

File tree

27 files changed

+139
-79
lines changed

27 files changed

+139
-79
lines changed

ShopMax/.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
APP_NAME="MyApp"
44
APP_ENV="developing"
5-
APP_DEBUG="true"
5+
APP_DEBUG="false"
66
APP_URL="https://myshopify.com"
77
API_BASE_URL="https://myshopifystore.com"
88

@@ -57,4 +57,4 @@ FCM_ENABLED=null
5757
ENCRYPT_KEY=null
5858
ENCRYPT_SECRET=null
5959

60-
SUPPORT_EMAIL=""
60+
SUPPORT_EMAIL=null

ShopMax/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [1.0.5] - 2024-02-17
2+
3+
* Add missing translations
4+
* Migrate to newer Android and IOS project structure
5+
* pubspec.yaml updates
6+
17
## [1.0.4] - 2024-02-15
28

39
* Fix Wishlist page

ShopMax/android/app/build.gradle

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
612
}
713
}
814

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-
1415
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1516
if (flutterVersionCode == null) {
1617
flutterVersionCode = '1'
@@ -21,33 +22,33 @@ if (flutterVersionName == null) {
2122
flutterVersionName = '1.0'
2223
}
2324

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27-
2825
android {
29-
packagingOptions {
30-
exclude 'META-INF/DEPENDENCIES'
26+
namespace "com.woosignal.android"
27+
compileSdk flutter.compileSdkVersion
28+
ndkVersion flutter.ndkVersion
29+
30+
compileOptions {
31+
sourceCompatibility JavaVersion.VERSION_1_8
32+
targetCompatibility JavaVersion.VERSION_1_8
3133
}
3234

33-
compileSdkVersion 33
35+
kotlinOptions {
36+
jvmTarget = '1.8'
37+
}
3438

3539
sourceSets {
3640
main.java.srcDirs += 'src/main/kotlin'
3741
}
3842

39-
lintOptions {
40-
disable 'InvalidPackage'
41-
}
42-
4343
defaultConfig {
4444
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4545
applicationId "com.woosignal.android"
46-
minSdkVersion 21
47-
targetSdkVersion 33
46+
// You can update the following values to match your application needs.
47+
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
48+
minSdkVersion 33
49+
targetSdkVersion flutter.targetSdkVersion
4850
versionCode flutterVersionCode.toInteger()
4951
versionName flutterVersionName
50-
multiDexEnabled true
5152
}
5253

5354
buildTypes {
@@ -63,7 +64,4 @@ flutter {
6364
source '../..'
6465
}
6566

66-
dependencies {
67-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
68-
implementation "androidx.multidex:multidex:2.0.1"
69-
}
67+
dependencies {}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.woosignal.android
22

33
import io.flutter.embedding.android.FlutterActivity
4-
import io.flutter.embedding.android.FlutterFragmentActivity
54

6-
class MainActivity: FlutterFragmentActivity() {
7-
}
5+
class MainActivity: FlutterActivity()

ShopMax/android/build.gradle

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
buildscript {
2-
ext.kotlin_version = '1.7.10'
3-
repositories {
4-
google()
5-
jcenter()
6-
}
7-
8-
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.3.0'
10-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11-
}
12-
}
13-
141
allprojects {
152
repositories {
163
google()
17-
jcenter()
4+
mavenCentral()
185
}
196
}
207

ShopMax/android/gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
org.gradle.jvmargs=-Xmx1536M
2-
android.enableR8=true
1+
org.gradle.jvmargs=-Xmx4G
32
android.useAndroidX=true
43
android.enableJetifier=true
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Fri Jun 23 08:50:38 CEST 2017
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
43
zipStoreBase=GRADLE_USER_HOME
54
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-all.zip

ShopMax/android/settings.gradle

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1-
include ':app'
1+
pluginManagement {
2+
def flutterSdkPath = {
3+
def properties = new Properties()
4+
file("local.properties").withInputStream { properties.load(it) }
5+
def flutterSdkPath = properties.getProperty("flutter.sdk")
6+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7+
return flutterSdkPath
8+
}
9+
settings.ext.flutterSdkPath = flutterSdkPath()
210

3-
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4-
def properties = new Properties()
11+
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
512

6-
assert localPropertiesFile.exists()
7-
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
13+
repositories {
14+
google()
15+
mavenCentral()
16+
gradlePluginPortal()
17+
}
18+
}
819

9-
def flutterSdkPath = properties.getProperty("flutter.sdk")
10-
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11-
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
20+
plugins {
21+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
22+
id "com.android.application" version "7.4.0" apply false
23+
id "org.jetbrains.kotlin.android" version "1.9.22" apply false
24+
}
25+
26+
include ":app"

ShopMax/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
isa = PBXProject;
216216
attributes = {
217217
BuildIndependentTargetsInParallel = YES;
218-
LastUpgradeCheck = 1430;
218+
LastUpgradeCheck = 1510;
219219
ORGANIZATIONNAME = "";
220220
TargetAttributes = {
221221
331C8080294A63A400263BE5 = {

ShopMax/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1430"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

0 commit comments

Comments
 (0)