Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
82702e4
feat: add lock orientation to portrait
tokujiTO Oct 23, 2025
91621db
fix: book not appearing if there is only assignments on the course
tokujiTO Oct 23, 2025
0531c8f
update: version number
tokujiTO Oct 23, 2025
7d97199
added new CI for testing new env variables passing via SSM
lseixas Mar 26, 2026
6c94fdc
fixed api courses and subjects to fetch for json file instead of diff…
lseixas Mar 26, 2026
e446379
updated env file generation and variable getting via ssm
lseixas Mar 26, 2026
45920d6
dont know what broke
lseixas Mar 26, 2026
d8f2406
updated env example
lseixas Mar 26, 2026
837ee80
updating test env setup dev CI
lseixas Mar 26, 2026
700e798
t Revert "updating test env setup dev CI"
lseixas Mar 26, 2026
bf159c1
commiting only necessary changes
lseixas Mar 26, 2026
567b299
updating test env setup
lseixas Mar 26, 2026
150784f
updated packages, old imports and broken parts
lseixas Mar 28, 2026
966aef6
extending to branch selection in ssm step, updating gitignores, updat…
lseixas Apr 8, 2026
97c18cf
started working on new card notice card, updated crucial versions
lseixas Apr 14, 2026
b3bd15f
added huge changes to versions, endpoints and content persistency. Ne…
lseixas May 23, 2026
db1c674
fix: contact us popup
lseixas Jul 2, 2026
6a0573f
chore: bump iOS deployment target to 13.0
lseixas Jul 2, 2026
3a67a6a
Merge pull request #47 from Maua-Dev/updates
lseixas Jul 2, 2026
ff2170c
Merge pull request #46 from Maua-Dev/dev
lseixas Jul 2, 2026
3f6f773
fix: changed flutter version on fastlane to stable instead of fixed v…
lseixas Jul 2, 2026
1e84a46
fix: typo
lseixas Jul 2, 2026
770e625
fix: resolve Android CI build failure on Flutter 3.44 stable. Replace…
lseixas Jul 2, 2026
d5829d5
chore: upgraded flutter
lseixas Jul 2, 2026
c681dcf
feat: reformulated static notice card text, update bundler version fo…
lseixas Jul 3, 2026
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
9 changes: 6 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
COURSES_URL=
GRADS_URL=
GRADE_OPTIMIZER_URL=
API_COURSES=
API_SUBJECTS=
API_GENETIC_ALGORITHM=
API_SUPPORT_URL=
API_FINAL_SCORE_URL=
API_NOTIFICATIONS=
1 change: 0 additions & 1 deletion .github/workflows/build_IOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
# run: |
# echo "GRADS_URL=${{ vars.API_COURSES }}" >> .env # The courses API
# echo "COURSES_URL=${{ vars.API_SUBJECTS }}" >> .env # The subjects API
# echo "GRADE_OPTIMIZER_URL=${{ vars.API_GRADE_OPTMIZER }}" >> .env # The grade optimizer API

# - name: Setup Fastlane
# uses: ruby/setup-ruby@v1
Expand Down
80 changes: 53 additions & 27 deletions .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,16 @@ on:
- homolog
- prod

workflow_call:

jobs:
build_android:
environment: ${{ github.ref_name }}
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}

- name: Get Version
run: |
Expand All @@ -29,27 +25,39 @@ jobs:
echo "app_build_name=$app_build_name" >> $GITHUB_ENV

- name: Setup Java Version
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: "12.x"
java-version: "17"
distribution: 'temurin'

- name: Setup Flutter Version
uses: subosito/flutter-action@v1
uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.3"
flutter-version: "3.44.4"
channel: "stable"

- name: Get flutter dependencies
run: flutter pub get

- name: Setup Fastlane
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.6"
bundler-cache: true
working-directory: android

- name: Set envs
- name: Set AWS Account ID
run: |
if [[ "${{ github.ref_name }}" == "dev" ]]; then
echo "AWS_ACCOUNT_ID=${{ secrets.AWS_ACCOUNT_ID_DEV }}" >> $GITHUB_ENV
elif [[ "${{ github.ref_name }}" == "homolog" ]]; then
echo "AWS_ACCOUNT_ID=${{ secrets.AWS_ACCOUNT_ID_HOML }}" >> $GITHUB_ENV
elif [[ "${{ github.ref_name }}" == "prod" ]]; then
echo "AWS_ACCOUNT_ID=${{ secrets.AWS_ACCOUNT_ID_PROD }}" >> $GITHUB_ENV
else
echo "Invalid branch name!" && exit 1
fi
echo "STACK_NAME=DevMediasStack${{github.ref_name}}" >> $GITHUB_ENV

- name: Setup AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/GithubActionsRole
role-session-name: github-action

- name: Configure Keystore
run: |
Expand All @@ -65,33 +73,51 @@ jobs:
ANDROID_KEYSTORE_STORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_STORE_PASSWORD }}
working-directory: android

# Busca o endpoint do APIGW no SSM (configurado no back).
- name: Fetch config from SSM
run: |
STAGE=$(echo "${{ github.ref_name }}" | tr '[:upper:]' '[:lower:]')

API_BASE=$(aws ssm get-parameter \
--name "/devmedias/$STAGE/api/url" \
--query "Parameter.Value" --output text)

API_BASE="${API_BASE%/}/"
echo "API_BASE=$API_BASE" >> $GITHUB_ENV

- name: Create .env file
run: |
echo "API_COURSES=${{vars.API_COURSES}}" >> .env # The courses API
echo "API_SUBJECTS=${{vars.API_SUBJECTS}}" >> .env # The subjects API
echo "API_GRADE_OPTMIZER=${{vars.API_GRADE_OPTMIZER}}" >> .env # The grade optimizer API
echo "API_SUPPORT_URL=${{vars.API_SUPPORT_URL}}" >> .env # The support API
echo "API_FINAL_SCORE_URL=${{vars.API_FINAL_SCORE_URL}}" >> .env # The final score API
{
echo "API_COURSES=${API_BASE}get-all-cursos"
echo "API_SUBJECTS=${API_BASE}get-all-disciplinas"
echo "API_GENETIC_ALGORITHM=${API_BASE}genetic-algorithm"
echo "API_SUPPORT_URL=${API_BASE}public/contact-us"
echo "API_FINAL_SCORE_URL=${API_BASE}calculate-mean"
echo "API_NOTIFICATIONS="
} >> .env

- name: Build Android
run: |
flutter build appbundle --release --build-name=$app_build_name --build-number=$app_build_number
flutter build appbundle --release \
--build-name=$app_build_name \
--build-number=$app_build_number

- name: Upload to artifacts
uses: actions/upload-artifact@v4
with:
name: app-release.aab
path: build/app/outputs/bundle/release/
retention-days: 1

deploy_to_play_store:
needs: build_android
environment: ${{ github.ref_name }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}

- name: Download artifact
uses: actions/download-artifact@v4
Expand All @@ -102,12 +128,12 @@ jobs:
- name: Setup Fastlane
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.6"
ruby-version: "3.2"
bundler-cache: true
working-directory: android

- name: Exec fastlane
run: bundle exec fastlane ${{github.ref_name}}
run: bundle exec fastlane ${{ github.ref_name }}
env:
PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }}
working-directory: android
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Miscellaneous
*.class
*.log
# Lock files (do not ignore Dart/Flutter lockfile — commit pubspec.lock)
*.lock
!pubspec.lock
*.pyc
*.swp
.DS_Store
Expand Down Expand Up @@ -35,6 +37,11 @@ migrate_working_dir/
.pub/
/build/

# Platform build outputs (Gradle, CMake, etc.)
/android/build/
/android/app/build/
/ios/build/

# Symbolication related
app.*.symbols

Expand Down
2 changes: 2 additions & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
gradle-wrapper.jar
/.gradle
/build/
app/build/
/captures/
/gradlew
/gradlew.bat
Expand Down
1 change: 1 addition & 0 deletions android/.ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.2
2 changes: 1 addition & 1 deletion android/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ DEPENDENCIES
fastlane

BUNDLED WITH
1.17.2
2.7.2
8 changes: 4 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '17'
}

sourceSets {
Expand All @@ -57,7 +57,7 @@ android {

defaultConfig {
applicationId "com.dev_medias_front_rn_v2"
minSdkVersion 21
minSdkVersion flutter.minSdkVersion
targetSdkVersion 35
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
7 changes: 4 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ allprojects {
}
}

rootProject.buildDir = '../build'
rootProject.layout.buildDirectory.value(rootProject.layout.buildDirectory.dir("../../build").get())

subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
project.layout.buildDirectory.value(rootProject.layout.buildDirectory.dir(project.name).get())
}
subprojects {
project.evaluationDependsOn(':app')
}

tasks.register("clean", Delete) {
delete rootProject.buildDir
delete rootProject.layout.buildDirectory
}
2 changes: 1 addition & 1 deletion android/fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package_name("com.dev_medias_front_rn")
package_name("com.dev_medias_front_rn_v2")
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip
4 changes: 2 additions & 2 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
id "com.android.application" version "8.11.1" apply false
id "org.jetbrains.kotlin.android" version "2.2.20" apply false
}

include ":app"
2 changes: 0 additions & 2 deletions ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>12.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '12.0'
# platform :ios, '13.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
18 changes: 2 additions & 16 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,30 +1,16 @@
PODS:
- Flutter (1.0.0)
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS

DEPENDENCIES:
- Flutter (from `Flutter`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)

EXTERNAL SOURCES:
Flutter:
:path: Flutter
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin"
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"

SPEC CHECKSUMS:
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467

PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796
PODFILE CHECKSUM: 4f1c12611da7338d21589c0b2ecd6bd20b109694

COCOAPODS: 1.16.2
Loading
Loading