Skip to content

Commit f6eceb8

Browse files
authored
Merge pull request #47 from flagship-io/emotionAI
Emotion ai
2 parents 6a3c582 + c25d068 commit f6eceb8

File tree

73 files changed

+2408
-794
lines changed

Some content is hidden

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

73 files changed

+2408
-794
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-java@v1
1515
with:
16-
java-version: "12.x"
16+
java-version: '15'
1717

1818
- uses: subosito/flutter-action@v1
1919
with:
@@ -31,17 +31,17 @@ jobs:
3131
- uses: actions/checkout@v2
3232
- uses: actions/setup-java@v1
3333
with:
34-
java-version: "12.x"
34+
java-version: '17'
3535
- uses: subosito/flutter-action@v1
3636
with:
3737
flutter-version: ${{ matrix.flutter }}
3838
- run: flutter pub get
3939
working-directory: example
40-
- run: flutter build apk
40+
- run: flutter build apk --debug
4141
working-directory: example
4242
- name: Archive FlagshipQA APK
4343
uses: actions/upload-artifact@v4
4444
with:
4545
name: QA APK
46-
path: example/build/app/outputs/flutter-apk/app-release.apk
46+
path: example/build/app/outputs/flutter-apk/app-debug.apk
4747
retention-days: 2

devtools_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
description: This file stores settings for Dart & Flutter DevTools.
2+
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
3+
extensions:

example/android/app/build.gradle

Lines changed: 15 additions & 11 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,11 +22,9 @@ 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 {
26+
27+
namespace "com.example.flagship_qa"
2928
compileSdk 34
3029

3130
sourceSets {
@@ -36,7 +35,7 @@ android {
3635
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3736
applicationId "com.example.flagship_qa"
3837
minSdkVersion flutter.minSdkVersion
39-
targetSdkVersion 30
38+
targetSdkVersion 34
4039
versionCode flutterVersionCode.toInteger()
4140
versionName flutterVersionName
4241
}
@@ -48,12 +47,17 @@ android {
4847
signingConfig signingConfigs.debug
4948
}
5049
}
50+
51+
compileOptions {
52+
sourceCompatibility JavaVersion.VERSION_17
53+
targetCompatibility JavaVersion.VERSION_17
54+
}
5155
}
5256

5357
flutter {
5458
source '../..'
5559
}
5660

5761
dependencies {
58-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
62+
// implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
5963
}
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.flagship_qa">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->
5+
66
<uses-permission android:name="android.permission.INTERNET"/>
7+
<application android:label="com.example.flagship_qa" android:icon="@mipmap/ic_launcher" android:usesCleartextTraffic="false" android:allowBackup="false">
8+
<activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
9+
10+
<intent-filter>
11+
<action android:name="android.intent.action.MAIN" />
12+
<category android:name="android.intent.category.LAUNCHER" />
13+
</intent-filter>
14+
</activity>
15+
16+
</application>
17+
18+
719
</manifest>

example/android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.flagship_qa">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<uses-permission android:name="android.permission.INTERNET" />
3-
<application android:label="flagship_qa" android:icon="@mipmap/ic_launcher">
4-
<activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
3+
<application android:label="com.example.flagship_qa" android:icon="@mipmap/ic_launcher" android:usesCleartextTraffic="false" android:allowBackup="false">
4+
<activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"
5+
android:exported="true" >
56
<!-- Specifies an Android theme to apply to this Activity as soon as
67
the Android process has started. This theme is visible to the user
78
while the Flutter UI initializes. After that, this theme continues

example/android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.flagship_qa">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

example/android/build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
buildscript {
2-
ext.kotlin_version = '1.7.0'
3-
repositories {
4-
google()
5-
jcenter()
6-
}
7-
8-
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.4.2'
10-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11-
}
12-
}
13-
141
allprojects {
152
repositories {
163
google()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

example/android/settings.gradle

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
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+
}()
29

3-
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4-
def properties = new Properties()
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
511

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

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"
19+
plugins {
20+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21+
id "com.android.application" version '8.1.2' apply false
22+
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
23+
}
24+
25+
include ":app"

example/ios/Podfile.lock

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
PODS:
22
- device_info (0.0.1):
33
- Flutter
4+
- device_info_plus (0.0.1):
5+
- Flutter
46
- device_information (0.0.1):
57
- Flutter
68
- Flutter (1.0.0)
@@ -10,21 +12,24 @@ PODS:
1012
- shared_preferences_foundation (0.0.1):
1113
- Flutter
1214
- FlutterMacOS
13-
- sqflite (0.0.3):
15+
- sqflite_darwin (0.0.4):
1416
- Flutter
1517
- FlutterMacOS
1618

1719
DEPENDENCIES:
1820
- device_info (from `.symlinks/plugins/device_info/ios`)
21+
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
1922
- device_information (from `.symlinks/plugins/device_information/ios`)
2023
- Flutter (from `Flutter`)
2124
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
2225
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
23-
- sqflite (from `.symlinks/plugins/sqflite/darwin`)
26+
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
2427

2528
EXTERNAL SOURCES:
2629
device_info:
2730
:path: ".symlinks/plugins/device_info/ios"
31+
device_info_plus:
32+
:path: ".symlinks/plugins/device_info_plus/ios"
2833
device_information:
2934
:path: ".symlinks/plugins/device_information/ios"
3035
Flutter:
@@ -33,17 +38,18 @@ EXTERNAL SOURCES:
3338
:path: ".symlinks/plugins/path_provider_foundation/darwin"
3439
shared_preferences_foundation:
3540
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
36-
sqflite:
37-
:path: ".symlinks/plugins/sqflite/darwin"
41+
sqflite_darwin:
42+
:path: ".symlinks/plugins/sqflite_darwin/darwin"
3843

3944
SPEC CHECKSUMS:
40-
device_info: d7d233b645a32c40dfdc212de5cf646ca482f175
41-
device_information: d652f6dcea86bdc5300ffd495486de1d5047bf4f
45+
device_info: 52e8c0c9c61def8d0a92bf175f5f500abbea04bc
46+
device_info_plus: 21fcca2080fbcd348be798aa36c3e5ed849eefbe
47+
device_information: 27f680afa6fe71e4c211d14257c37da07662c9f6
4248
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
43-
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
44-
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
45-
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
49+
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
50+
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
51+
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
4652

4753
PODFILE CHECKSUM: ce13d36744da294d67f8e460dbb7aed7c09bd7f4
4854

49-
COCOAPODS: 1.13.0
55+
COCOAPODS: 1.16.2

0 commit comments

Comments
 (0)