Skip to content

Commit cbfa839

Browse files
Merge pull request #21 from MateusRodCosta/dev
Version 1.3.0
2 parents d25adcf + 7a36142 commit cbfa839

Some content is hidden

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

66 files changed

+566
-347
lines changed

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/mobsf.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ name: MobSF
77

88
on:
99
push:
10-
branches: [ "main" ]
10+
branches: [ "dev" ]
1111
pull_request:
12-
branches: [ "main" ]
12+
branches: [ "dev" ]
1313
schedule:
14-
- cron: '38 22 * * 3'
14+
- cron: '0 15 * * 5'
15+
workflow_dispatch:
1516

1617
permissions:
1718
contents: read
@@ -25,18 +26,16 @@ jobs:
2526
runs-on: ubuntu-latest
2627

2728
steps:
28-
- uses: actions/checkout@v3
29-
29+
- name: Checkout
30+
uses: actions/checkout@v4
3031
- name: Setup python
3132
uses: actions/setup-python@v4
3233
with:
3334
python-version: "3.10"
34-
3535
- name: Run mobsfscan
3636
uses: MobSF/mobsfscan@main
3737
with:
3838
args: . --sarif --output results.sarif || true
39-
4039
- name: Upload mobsfscan report
4140
uses: github/codeql-action/upload-sarif@v2
4241
with:
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
on: [pull_request]
1+
name: Validate Fastlane metadata
2+
3+
on:
4+
push:
5+
branches: [ "dev" ]
6+
pull_request:
7+
branches: [ "dev" ]
8+
schedule:
9+
- cron: '0 15 * * 5'
10+
workflow_dispatch:
11+
212
jobs:
313
validate-fastlane:
414
runs-on: ubuntu-latest
515
steps:
6-
- uses: actions/checkout@v3
16+
- name: Checkout
17+
uses: actions/checkout@v4
718
- uses: ashutoshgngwr/validate-fastlane-supply-metadata@v2
819
with:
920
usePlayStoreLocales: true # optional

.mobsf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
3+
- ignore-rules:
4+
- android_prevent_screenshot
5+
- android_root_detection
6+
- android_safetynet
7+
- ios_custom_keyboard_disabled
8+
- ios_detect_reversing
9+
- ios_jailbreak_detect
10+
- ios_keyboard_cache

android/app/build.gradle

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ kotlin {
3838
android {
3939
namespace "com.mateusrodcosta.apps.vidyamusic"
4040

41-
compileSdk 33
41+
compileSdk 34
4242
defaultConfig {
4343
applicationId "com.mateusrodcosta.apps.vidyamusic"
4444
minSdkVersion 26
45-
targetSdkVersion 33
45+
targetSdkVersion 33
4646
versionCode flutterVersionCode.toInteger()
4747
versionName flutterVersionName
4848
}
@@ -76,6 +76,18 @@ android {
7676
}
7777
}
7878

79+
splits {
80+
abi {
81+
enable true
82+
83+
reset()
84+
//noinspection ChromeOsAbiSupport
85+
include "armeabi-v7a", "arm64-v8a", "x86_64"
86+
87+
universalApk true
88+
}
89+
}
90+
7991
compileOptions {
8092
sourceCompatibility JavaVersion.VERSION_17
8193
targetCompatibility JavaVersion.VERSION_17
@@ -85,6 +97,28 @@ android {
8597
}
8698
}
8799

100+
ext.abiCodes = ['armeabi-v7a': 1, 'arm64-v8a': 2, x86_64: 4]
101+
102+
android.applicationVariants.configureEach { variant ->
103+
104+
variant.outputs.each { output ->
105+
106+
def baseAbiVersionCode =
107+
project.ext.abiCodes.get(output.getFilter("ABI"))
108+
109+
if (baseAbiVersionCode != null) {
110+
111+
output.versionCodeOverride =
112+
// As required by F-Droid, version code at beginning and abi code at the end
113+
// If wanting to build a universal APK with similar naming scheme, do so manually
114+
// via `--build-number` argument from `flutter build apk`
115+
variant.versionCode * 100 + baseAbiVersionCode
116+
// Default split apk version code, api code at beginning and version code at the end
117+
//baseAbiVersionCode * 1000 + variant.versionCode
118+
}
119+
}
120+
}
121+
88122
flutter {
89123
source '../..'
90124
}

android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
<application
77
android:label="${appName}"
88
android:name="${applicationName}"
9-
android:icon="@mipmap/ic_launcher">
9+
android:icon="@mipmap/ic_launcher"
10+
android:appCategory="audio"
11+
android:localeConfig="@xml/locales_config"
12+
tools:targetApi="33">
1013
<activity
1114
android:name="com.ryanheise.audioservice.AudioServiceActivity"
1215
android:exported="true"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
3+
<locale android:name="en"/>
4+
<locale android:name="pt-BR"/>
5+
</locale-config>

android/gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
2-
androidGradlePlugin = "8.1.1"
3-
kotlinVersion = "1.9.10"
2+
androidGradlePlugin = "8.2.0"
3+
kotlinVersion = "1.9.21"
44

55
[libraries]
66

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=591855b517fc635b9e04de1d05d5e76ada3f89f5fc76f87978d1b245b4f69225
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
3+
distributionSha256Sum=9d926787066a081739e8200858338b4a69e837c3a821a33aca9db09dd4a41026
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

assets/i18n/en.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"genericError": "An Error Occurred.",
3+
"rosterErrorNoInternet": "No Internet Connection!",
4+
"rosterErrorCouldntFetch": "Couldn't fetch tracks...",
5+
"rosterRetry": "Retry",
6+
"playerNoTrack": "No track",
7+
"playerArranger": "Arranger: {}",
8+
"playerComposer": "Composer: {}",
9+
"themeModeSystem": "System Theme",
10+
"themeModeLight": "Light Theme",
11+
"themeModeDark": "Dark Theme",
12+
"drawerAboutTile": "About",
13+
"aboutDialogLicense": "Licensed under AGPLv3+, developed by MateusRodCosta",
14+
"aboutDialogAppDescription": "A player for the Vidya Intarweb Playlist (aka VIP Aersia)",
15+
"aboutDialogVipCats777": "Vidya Intarweb Playlist by Cats777",
16+
"aboutDialogCopyrightNotice": "All Tracks © & ℗ Their Respective Owners",
17+
"aboutDialogSourceCode": "Source code is available at "
18+
}
19+

0 commit comments

Comments
 (0)