Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop into main #27

Merged
merged 84 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
f39d3e8
add: game screen implemented
ale24dev Sep 13, 2024
08b30a2
add: game screen implemented (#1)
ale24dev Sep 13, 2024
5e53412
add: database tables
ale24dev Sep 13, 2024
23eb3b8
add: comments to interface
ale24dev Sep 14, 2024
5714e5d
add: database tables (#2)
ale24dev Sep 14, 2024
77e4243
add: exception handler
ale24dev Sep 14, 2024
49dc6aa
add: exception handler (#3)
ale24dev Sep 14, 2024
fe079d4
add: serializer to domain classes
ale24dev Sep 14, 2024
e935214
add: serializer to domain classes (#4)
ale24dev Sep 14, 2024
8e66425
feat: player integration
ale24dev Sep 14, 2024
ea186cd
feat: player integration (#5)
ale24dev Sep 14, 2024
11756fc
add: game integration
ale24dev Sep 14, 2024
6a7d4ab
add: create findOrCreateGame function
ale24dev Sep 14, 2024
b791403
add: game integration (#6)
ale24dev Sep 14, 2024
519676e
refactor: structure project
ale24dev Sep 14, 2024
ab19f47
refactor: structure project (#7)
ale24dev Sep 14, 2024
29f9e4c
feat: integrate attempt in game
ale24dev Sep 14, 2024
726f9d2
add: insert attempt function
ale24dev Sep 14, 2024
abb5413
feat: insert attempt implemented
ale24dev Sep 14, 2024
22f86e8
remove comments
ale24dev Sep 14, 2024
ea419cd
feat: integrate attempt in game (#8)
ale24dev Sep 14, 2024
8ef6c84
add: supabase config implemented
ale24dev Sep 14, 2024
2fedbf6
add: supabase config implemented (#9)
ale24dev Sep 14, 2024
b8533dd
add: show rival
ale24dev Sep 17, 2024
0e89957
add: show rival (#10)
ale24dev Sep 17, 2024
d891707
add: player number flow
ale24dev Sep 17, 2024
e4fe53a
add: player number flow (#11)
ale24dev Sep 17, 2024
46a6e33
chore: prepare to build
ale24dev Sep 19, 2024
3b93c4c
chore: prepare to build (#12)
ale24dev Sep 20, 2024
b2d685d
refactor: change route logic of app
ale24dev Sep 19, 2024
d3ca55c
refactor: change route logic of app (#13)
ale24dev Sep 20, 2024
eff3f4e
add refactor app
ale24dev Sep 19, 2024
e28f219
add refactor app (#14)
ale24dev Sep 20, 2024
413f86c
add: search assets
ale24dev Sep 20, 2024
b9083c0
refactor: rename and change getCurrentGame for getLastGame
ale24dev Sep 20, 2024
8fdd3f8
add: cancel game service
ale24dev Sep 20, 2024
85ddcbd
feat: add search game screen
ale24dev Sep 20, 2024
717b4d8
fix: validate secret number
ale24dev Sep 20, 2024
dc8c6a4
feat: search game (#15)
ale24dev Sep 20, 2024
cc08cee
fix: trigger changes on game if player is inside
ale24dev Sep 20, 2024
8a4c502
fix: show waiting for player number
ale24dev Sep 20, 2024
e733485
fix: restrict search game if is searching
ale24dev Sep 20, 2024
5186256
fix: search game player (#16)
ale24dev Sep 20, 2024
91b9c02
add: utils extension functions
ale24dev Sep 21, 2024
cb19117
add: equatable dependency
ale24dev Sep 21, 2024
1795491
add: add new properties on player number and use equatable
ale24dev Sep 21, 2024
03b91ac
fix: change name to logs
ale24dev Sep 21, 2024
6f0f82d
add: new properties to queryBase
ale24dev Sep 21, 2024
9a88df4
add: utils extension functions (#17)
ale24dev Sep 21, 2024
c41c37d
add: listen player number database changes
ale24dev Sep 21, 2024
c0e41d1
add: _listenPlayerNumberChanges to game cubit
ale24dev Sep 21, 2024
a20144e
add: create counter logic and turn status on game screen
ale24dev Sep 21, 2024
4dbc0d0
add: listen player number database changes (#18)
ale24dev Sep 21, 2024
27b3de1
add: new migrations
ale24dev Sep 21, 2024
b528624
add: new migrations (#19)
ale24dev Sep 21, 2024
4aca6a6
add: update edge function
ale24dev Sep 21, 2024
fffda11
add: update edge function (#20)
ale24dev Sep 21, 2024
93d12f7
add: ranking datasource
ale24dev Sep 22, 2024
01669a7
add: new ranking columns
ale24dev Sep 22, 2024
e870f7f
refactor: ranking model
ale24dev Sep 22, 2024
d86cbfe
add: ranking datasource (#21)
ale24dev Sep 22, 2024
52d6854
add: ranking repository
ale24dev Sep 22, 2024
748490c
add: create ranking cubit
ale24dev Sep 22, 2024
9553847
add: ranking services (#22)
ale24dev Sep 22, 2024
53f5fe3
add: new assets
ale24dev Sep 22, 2024
c4a13fd
refactor: leaderboard location
ale24dev Sep 22, 2024
d29802e
add: ranking utils
ale24dev Sep 22, 2024
1dd1b67
add: rank card widget
ale24dev Sep 22, 2024
ac4a08b
add: top three players ranking widget
ale24dev Sep 22, 2024
90047ab
add: ranking views (#23)
ale24dev Sep 22, 2024
5730fb8
Create 20240922060415_remote_schema.sql
ale24dev Sep 22, 2024
0dbf487
add: database migrations (#24)
ale24dev Sep 22, 2024
7f4359b
add: improve ranking feature
ale24dev Sep 22, 2024
d7aedeb
add: get points by win or lose
ale24dev Sep 22, 2024
a86b620
add: new assets
ale24dev Sep 23, 2024
a034c3e
add: header user info
ale24dev Sep 23, 2024
77d5736
add: improve message of win or lose
ale24dev Sep 23, 2024
75653fd
add: improve ranking feature (#25)
ale24dev Sep 23, 2024
bd7ee86
refactor: assets and add fonts
ale24dev Sep 23, 2024
5355a2d
add: typographies
ale24dev Sep 23, 2024
d292fce
add: improve app ui
ale24dev Sep 23, 2024
e2c3c71
refactor: assets and add fonts (#26)
ale24dev Sep 23, 2024
dc30c54
fix: spider route images
ale24dev Sep 23, 2024
849b67b
add: new migration
ale24dev Sep 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 35 additions & 63 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
plugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
def localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localPropertiesFile.withReader("UTF-8") { reader ->
localProperties.load(reader)
}
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
if (flutterVersionCode == null) {
flutterVersionCode = '1'
flutterVersionCode = "1"
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
def flutterVersionName = localProperties.getProperty("flutter.versionName")
if (flutterVersionName == null) {
flutterVersionName = '1.0'
flutterVersionName = "1.0"
}

def keystoreProperties = new Properties()
Expand All @@ -28,88 +29,59 @@ if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}


android {
namespace "com.mindcows.app"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
namespace = "com.mindcows.app"
compileSdk = 34
ndkVersion = flutter.ndkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = 17
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.mindcows.app"
applicationId = "com.mindcows.app"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutterVersionCode.toInteger()
versionName = flutterVersionName
}

signingConfigs {
if (System.getenv("ANDROID_KEYSTORE_PATH")) {
release {
storeFile file(System.getenv("ANDROID_KEYSTORE_PATH"))
keyAlias System.getenv("ANDROID_KEYSTORE_ALIAS")
keyPassword System.getenv("ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD")
storePassword System.getenv("ANDROID_KEYSTORE_PASSWORD")
}
} else {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
}

flavorDimensions "default"
productFlavors {
production {
dimension "default"
applicationIdSuffix ""
manifestPlaceholders = [appName: "My App"]
}
staging {
dimension "default"
applicationIdSuffix ".stg"
manifestPlaceholders = [appName: "[STG] My App"]
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
development {
dimension "default"
applicationIdSuffix ".dev"
manifestPlaceholders = [appName: "[DEV] My App"]
debug {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}

buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt')
}
debug {
signingConfig signingConfigs.debug
}
}
}

flutter {
source '../..'
dependencies {
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.window:window:1.0.0'
implementation 'androidx.window:window-java:1.0.0'
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20"

flutter {
source = "../.."
}
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

63 changes: 52 additions & 11 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,43 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.quasar.easehouse">

<uses-permission android:name="android.permission.INTERNET" />

<application
android:label="${appName}"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/launcher_icon"
android:label="MindCows">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTask"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:exported="true"
android:hardwareAccelerated="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Set up the Sign in with Apple activity, such that it's callable from the browser-redirect -->
<activity
android:name="com.aboutyou.dart_packages.sign_in_with_apple.SignInWithAppleCallback"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="com.quasar.easehouse" android:host="callback" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
Expand All @@ -30,4 +46,29 @@
android:name="flutterEmbedding"
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.

In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT" />
<data android:mimeType="text/plain" />
</intent>
<!-- If your app checks for SMS support -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="sms" />
</intent>
<!-- If your app checks for call support -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="tel" />
</intent>
<!-- If your application checks for inAppBrowserView launch mode support -->
<intent>
<action android:name="android.support.customtabs.action.CustomTabsService" />
</intent>
</queries>
</manifest>
Binary file removed android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file removed android/app/src/staging/ic_launcher-playstore.png
Diff not rendered.
Loading
Loading