Skip to content

Commit

Permalink
Merge pull request #363 from lucasnlm/update-app
Browse files Browse the repository at this point in the history
Add LT language
  • Loading branch information
lucasnlm committed Mar 1, 2022
2 parents 7014b7f + cdac9bb commit e69dbf6
Show file tree
Hide file tree
Showing 38 changed files with 274 additions and 98 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup JDK 1.8
uses: actions/setup-java@v1
- name: Setup JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'zulu'
java-version: '11'
- name: Build with Gradle
run: |
./gradlew testFossDebugUnitTest --stacktrace
Expand All @@ -45,10 +46,11 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup JDK 1.8
uses: actions/setup-java@v1
- name: Setup JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'zulu'
java-version: '11'
- name: Build for F-Droid
run: |
./gradlew assembleFossDebug
6 changes: 3 additions & 3 deletions about/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ plugins {
}

android {
compileSdkVersion 31
compileSdkVersion 32

defaultConfig {
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 32

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down Expand Up @@ -69,7 +69,7 @@ dependencies {
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2'

// Kotlin Lib
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10'

// Unit Tests
testImplementation 'junit:junit:4.13.2'
Expand Down
12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ if (System.getenv('IS_GOOGLE_BUILD')) {
}

android {
compileSdkVersion 31
compileSdkVersion 32

defaultConfig {
// versionCode and versionName must be hardcoded to support F-droid
versionCode 1506001
versionName '15.6.0'
versionCode 1507001
versionName '15.7.0'
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 32
multiDexEnabled true
vectorDrawables.useSupportLibrary true
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
Expand All @@ -27,7 +27,7 @@ android {
'es-rES', 'fi-rFI', 'fr-rFR', 'hi-rIN', 'hu-rHU', 'it-rIT', 'iw-rIL', 'ja-rJP',
'ko-rKR', 'nl-rNL', 'no-rNO', 'pl-rPL', 'pt-rBR', 'pt-rPT', 'ro-rRO', 'ru-rRU',
'sv-rSE', 'th-rTH', 'tr-rTR', 'uk-rUA', 'vi-rVN', 'zh-rCN', 'bg-rBG', 'in-rID',
'vec-rIT', 'ku-rTR', 'szl', 'lv-rLV', 'sl-rSI', 'zh-rTW'
'vec-rIT', 'ku-rTR', 'szl', 'lv-rLV', 'sl-rSI', 'zh-rTW', 'lt-rLT'
}

bundle {
Expand Down Expand Up @@ -155,7 +155,7 @@ dependencies {

// Kotlin
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2'

// Tests
Expand Down
1 change: 0 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
<activity
android:name=".main.MainActivity"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:launchMode="singleTop"
android:roundIcon="@mipmap/ic_launcher_round"
android:saveEnabled="false"
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/dev/lucasnlm/antimine/GameActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ import dev.lucasnlm.external.IInstantAppManager
import dev.lucasnlm.external.IPlayGamesManager
import dev.lucasnlm.external.ReviewWrapper
import kotlinx.android.synthetic.main.activity_game.*
import kotlinx.android.synthetic.main.activity_main.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class LanguageSelectorActivity : ThematicActivity(R.layout.activity_language) {
"Français" to "fr-rFR",
"हिन्दी" to "hi-rIN",
"Latviešu valoda" to "lv-rLV",
"Lietuvių kalba" to "lt-rLT",
"Magyar" to "hu-rHU",
"Italiano" to "it-rIT",
"תירבע" to "iw-rIL",
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/res/drawable/round_play_arrow.xml

This file was deleted.

8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.1.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30'
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10'

if (System.getenv('IS_GOOGLE_BUILD')) {
classpath 'com.google.gms:google-services:4.3.8'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.0'
classpath 'com.google.firebase:perf-plugin:1.4.0'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
classpath 'com.google.firebase:perf-plugin:1.4.1'
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ plugins {
}

android {
compileSdkVersion 31
compileSdkVersion 32

defaultConfig {
// versionCode and versionName must be hardcoded to support F-droid
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 32
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}

Expand Down Expand Up @@ -79,7 +79,7 @@ dependencies {
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2'

// Kotlin Lib
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10'

// Unit Tests
testImplementation 'junit:junit:4.13.2'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class SwitchButtonView : FrameLayout {
}
}

val iconColor = palette.covered.toOppositeMax(0.9f)
val iconColor = palette.accent.toOppositeMax(0.9f)
icon.apply {
setImageResource(R.drawable.touch)
imageTintList = ColorStateList.valueOf(iconColor.toIntBits())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ open class GameViewModel(
emit(state.copy(isLoadingMap = false))

if (!state.isGameCompleted && state.hasMines && !state.isLoadingMap) {
if (!gameController.isGameOver() && !gameController.isVictory()) {
if (
!gameController.isGameOver() &&
!gameController.isVictory() &&
gameController.remainingMines() > 1
) {
runClock()
}
} else {
Expand Down
6 changes: 3 additions & 3 deletions control/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ plugins {
}

android {
compileSdkVersion 31
compileSdkVersion 32

defaultConfig {
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 32

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down Expand Up @@ -68,7 +68,7 @@ dependencies {
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2'

// Kotlin Lib
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10'

// Unit Tests
testImplementation 'junit:junit:4.13.2'
Expand Down
6 changes: 3 additions & 3 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {
}

android {
compileSdkVersion 31
compileSdkVersion 32

defaultConfig {
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 32

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down Expand Up @@ -38,7 +38,7 @@ dependencies {

// Kotlin
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2'

// Koin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ sealed class Analytics(

object OpenAbout : Analytics("Open About")

object MoreGames : Analytics("Open More Games")

object OpenStats : Analytics("Open Stats")

object OpenTranslations : Analytics("Open Translations")
Expand Down
6 changes: 3 additions & 3 deletions external/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {
}

android {
compileSdkVersion 31
compileSdkVersion 32

defaultConfig {
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 32
}

buildTypes {
Expand All @@ -35,6 +35,6 @@ dependencies {

// Kotlin
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2'
}
2 changes: 1 addition & 1 deletion fastlane/metadata/android/ja-JP/full_description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
目的
ルールは「マインスイーパー」と似ています。 フィールドにある地雷すべてに旗を立てたとき、あなたはゲームに勝利します。 爆発させないよう気を付けましょう!

NO GUESSING
運要素なし
このゲームには常にクリア可能なフィールドを生成するアルゴリズムがあります。 最後の地雷がどこにあるかを当てる必要はありません!

ゲームレベル
Expand Down
49 changes: 49 additions & 0 deletions fastlane/metadata/android/lt-LT/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Išbandykite savo mąstymo galią loginiame žaidime, kuriame turite išvalyti minų lauką nesprogdinę minos.
Tai yra minimalistinė ir šiuolaikinė klasikinio Išminuotojo versija.

Ar sugebėsite išvalyti minų lauką? Pirmyn!

UŽDUOTIS
Tai yra kaip Išminuotojas. Žaidimą laimite pažymėję kiekvieną miną vėliavėle. Būkite atsargūs, kad jų nesusprogdintumėte!

BE SPĖLIOJIMŲ
Šis žaidimas turi algoritmą, sukuriantį išsprendžiamus minų laukus. Nereikės spėlioti, kur yra paskutinė mina!

ŽAIDIMO LYGIAI
Kaip ir Išminuotojas, šis žaidimas turi skirtingus lygius: naujokas, vidutinis ir ekspertas. Tačiau jis turi unikalų progresyvų režimą, kuris tampa sunkesnis su kiekviena pergale.

TINKINTAS LYGIS
Jei nepakanka standartinių režimų, galite sukurti savo sunkumo lygį!

TEMOS
Antimine turi daugiau nei 15 temų (įskaitant šviesią, tamsią ir AMOLED). Ir greitai bus pridėta daugiau!

MINIMALIZMAS
Paprasta išvaizda ir pojūtis: minimalistinis vaizdas ir nedidelis programėlės dydis (mažiau nei 9 MB).

APMOKYMAS
Nemokate žaisti Išminuotojo? Jokių problemų, galite žaisti mūsų apmokymo lygį ir įjungti patarimus nustatymuose.

STATISTIKA
Patikrinkite savo rezultatus ir progresą.

PADĖJĖJAS
Žaidimas automatiškai pažymės jūsų atskirtus kvadratus.

TINKINIMAS
Galite keisti žaidimą pagal savo skonį.
Pavyzdžiui: pagalba, animacijos, vibracija, klaustukas.

VALDYMAS
Palaikomos keturios skirtingos valdymo schemos. Pavyzdžiui: pažymėjimas vėliavėle su bakstelėjimu arba ilgu spustelėjimu.

PASIEKIMAI IR LYDERIŲ LENTELĖS
Galite atrakinti aštuonis pasiekimus ir dalintis lyderių lentelėmis su draugais.

PRIJUNGTIS AR ATJUNGTIS
Nereikia turėti interneto ryšio, kad galėtumėte žaisti!

AUTOMATINIS IŠSAUGOJIMAS
Galite pradėti žaidimą ir tęsti vėliau! Žaidimas automatiškai išsaugo jūsų progresą.

Mėgaukites.
1 change: 1 addition & 0 deletions fastlane/metadata/android/lt-LT/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Loginis žaidimas, kuriame ieškote paslėptų minų.
1 change: 1 addition & 0 deletions fastlane/metadata/android/lt-LT/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Išminuotojas - Antimine
4 changes: 2 additions & 2 deletions fastlane/metadata/android/nl-NL/full_description.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Test je redeneringskrachtinp een uitdagend puzzelspel waar je een mijnenveld moet oplossen zonder een mijn te laten exploderen.
Test je redeneringskracht in een uitdagend puzzelspel waar je de plekken zonder mijn moet markeren, zonder een mijn te laten exploderen.
Dit is een minimalistische en moderne versie van de klassieker Mijnenveger.

Kan je een mijnenveld opruimen? Aan de slag!
Expand All @@ -16,7 +16,7 @@ AANGEPAST NIVEAU
Als de standaard modi niet genoeg zijn, kan je je eigen moeilijkheid creëren!

THEMA'S
Antimine heeft meer dan 15 thema's (inclusief licht, donker en AMOLED). En binnenkort worden er nog meer toegevoegd!
Antimijn heeft meer dan 15 thema's (inclusief licht, donker en AMOLED). En binnenkort worden er nog meer toegevoegd!

MINIMALIST
Strakke look en feel: een minimalistische visuele en ook lichtgewichte app (minder dan 9MB).
Expand Down
6 changes: 3 additions & 3 deletions foss/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ plugins {
}

android {
compileSdkVersion 31
compileSdkVersion 32

defaultConfig {
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 32
}

buildTypes {
Expand All @@ -28,7 +28,7 @@ dependencies {

// Kotlin
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2'

// Koin
Expand Down
4 changes: 2 additions & 2 deletions gdx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ plugins {
}

android {
compileSdkVersion 31
compileSdkVersion 32

defaultConfig {
// versionCode and versionName must be hardcoded to support F-droid
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 32
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}

Expand Down
4 changes: 2 additions & 2 deletions i18n/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {
}

android {
compileSdkVersion 31
compileSdkVersion 32

defaultConfig {
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 32

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
Loading

0 comments on commit e69dbf6

Please sign in to comment.