Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
MezoPeeta committed Sep 16, 2023
1 parent e4e8ab9 commit c42b1be
Show file tree
Hide file tree
Showing 125 changed files with 5,968 additions and 4,553 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Release APK

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0' # Adjust this to your Flutter version

- name: Build APK
run: flutter build apk --release

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: build/app/outputs/flutter-apk/app-release.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get Release URL
run: echo "Release URL: ${{ steps.create_release.outputs.upload_url }}"
2 changes: 0 additions & 2 deletions .gradle/buildOutputCleanup/cache.properties

This file was deleted.

26 changes: 26 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"configurations": [
{
"name": "Flutter Debug",
"type": "dart",
"request": "launch",
"program": "lib/main.dart",
"flutterMode": "debug"
},
{
"name": "Flutter Profile",
"type": "dart",
"request": "launch",
"program": "lib/main.dart",
"flutterMode": "profile"
},

{
"name": "Flutter Release",
"type": "dart",
"request": "launch",
"program": "lib/main.dart",
"flutterMode": "release"
}
]
}
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"[dart]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.suggest.insertMode": "replace",
"editor.defaultFormatter": "Dart-Code.dart-code",
"editor.inlayHints.enabled": "offUnlessPressed",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
}
}
}
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

generate_localization:
flutter pub run easy_localization:generate -S "assets/translations" -O "lib/src/translations"

generate_localization_keys:
flutter pub run easy_localization:generate -S "assets/translations" -O "lib/src/translations" -o "locale_keys.g.dart" -f keys

gen_translate: generate_localization generate_localization_keys

flutter_generate:
flutter packages pub run build_runner build --delete-conflicting-outputs
1 change: 0 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ android {
release {
signingConfig signingConfigs.release
minifyEnabled true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}
Expand Down
13 changes: 3 additions & 10 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package="com.mazen.livine">
<application
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
Expand Down Expand Up @@ -40,24 +41,16 @@
</intent-filter>

</activity>
<activity
android:name="com.yalantis.ucrop.UCropActivity"
android:exported="true"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>



<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-1056698201610872~2297347936"/>
</application>


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

</manifest>
4 changes: 4 additions & 0 deletions android/app/src/main/res/xml/filepaths.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<files-path name="internal_apk_storage" path="ota_update/"/>
</paths>
4 changes: 4 additions & 0 deletions android/app/src/main/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:7.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

}
Expand All @@ -25,6 +25,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
org.gradle.jvmargs=-Xmx4608m
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
Binary file removed assets/images/difficulty/sad.png
Binary file not shown.
Binary file removed assets/images/difficulty/smile.png
Binary file not shown.
Binary file removed assets/images/difficulty/wow.png
Binary file not shown.
Binary file removed assets/images/icon/pristine.png
Binary file not shown.
3 changes: 3 additions & 0 deletions assets/images/icons/chief_hat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/windows/login.webp
Binary file not shown.
Binary file removed assets/images/windows/register.webp
Binary file not shown.
2 changes: 0 additions & 2 deletions assets/model/labels.txt

This file was deleted.

Binary file removed assets/model/model.tflite
Binary file not shown.
85 changes: 0 additions & 85 deletions assets/translations/ar.json

This file was deleted.

85 changes: 0 additions & 85 deletions assets/translations/en.json

This file was deleted.

Binary file added debug/app.android-arm.symbols
Binary file not shown.
Binary file added debug/app.android-arm64.symbols
Binary file not shown.
Binary file added debug/app.android-x64.symbols
Binary file not shown.
3 changes: 3 additions & 0 deletions l10n.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
arb-dir: lib/src/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
Loading

0 comments on commit c42b1be

Please sign in to comment.