mirror of
https://github.com/AndorsTrailRelease/andors-trail.git
synced 2025-12-27 14:59:00 +01:00
Compare commits
20 Commits
master
...
switch_to_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3820413d74 | ||
|
|
11db1b29e6 | ||
|
|
b996710e06 | ||
|
|
a01099ab53 | ||
|
|
5c4b92f7c8 | ||
|
|
5717715319 | ||
|
|
ff73fe1648 | ||
|
|
8c18d38686 | ||
|
|
e2d06ad22e | ||
|
|
e07c3814ba | ||
|
|
93fb964467 | ||
|
|
7c54472fae | ||
|
|
e3926e98c0 | ||
|
|
e95b288412 | ||
|
|
46cd0db8d3 | ||
|
|
e74c1d3d14 | ||
|
|
9907caed9f | ||
|
|
a0fcb9faa1 | ||
|
|
d42db1e1a9 | ||
|
|
c05c0f9382 |
23
.gitignore
vendored
23
.gitignore
vendored
@@ -1 +1,22 @@
|
||||
/AndorsTrail/.idea/workspace.xml
|
||||
# Android ignores
|
||||
gen/
|
||||
bin/
|
||||
target/
|
||||
local.properties
|
||||
|
||||
#IntelliJ
|
||||
.idea/
|
||||
out/production/
|
||||
out/test/
|
||||
*.iws
|
||||
*.ipr
|
||||
|
||||
# Other
|
||||
.metadata
|
||||
.svn/
|
||||
|
||||
/AndorsTrail/.gradle
|
||||
/AndorsTrail/gradle/wrapper
|
||||
/AndorsTrail/app/build/
|
||||
/AndorsTrail/app/debug/
|
||||
/AndorsTrail/app/release/
|
||||
|
||||
55
AndorsTrail/.gitignore
vendored
55
AndorsTrail/.gitignore
vendored
@@ -1,55 +0,0 @@
|
||||
gen/
|
||||
bin/
|
||||
target/
|
||||
local.properties
|
||||
app/build/intermediates/
|
||||
build/
|
||||
debug/
|
||||
beta/
|
||||
release/
|
||||
.gradle/
|
||||
|
||||
#IntelliJ
|
||||
.idea/
|
||||
out/production/
|
||||
out/test/
|
||||
*.iws
|
||||
*.ipr
|
||||
|
||||
# Other
|
||||
.metadata
|
||||
.svn/
|
||||
|
||||
|
||||
#copied from https://github.com/github/gitignore/blob/main/Gradle.gitignore
|
||||
.gradle
|
||||
**/build/
|
||||
!src/**/build/
|
||||
|
||||
# Ignore Gradle GUI config
|
||||
gradle-app.setting
|
||||
|
||||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
|
||||
!gradle-wrapper.jar
|
||||
|
||||
# Avoid ignore Gradle wrappper properties
|
||||
!gradle-wrapper.properties
|
||||
|
||||
# Cache of project
|
||||
.gradletasknamecache
|
||||
|
||||
# Eclipse Gradle plugin generated files
|
||||
# Eclipse Core
|
||||
.project
|
||||
# JDT-specific (Eclipse Java Development Tools)
|
||||
.classpath
|
||||
#copied from https://github.com/github/gitignore/blob/main/Gradle.gitignore
|
||||
|
||||
|
||||
/AndorsTrail/.gradle
|
||||
/AndorsTrail/gradle/wrapper
|
||||
/AndorsTrail/app/build/
|
||||
/AndorsTrail/app/debug/
|
||||
/AndorsTrail/app/beta/
|
||||
/AndorsTrail/app/release/
|
||||
/AndorsTrail/app/beta/
|
||||
@@ -1,91 +1,23 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
|
||||
compileSdkVersion 35
|
||||
compileSdkVersion 30
|
||||
buildToolsVersion "30.0.3"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.gpl.rpg.AndorsTrail"
|
||||
applicationId "com.gpl.rpg.AndorsTrail_beta2"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 35
|
||||
targetSdkVersion 30
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
manifestPlaceholders icon_name: 'icon', fileproviderPath: 'AndorsTrail'
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
||||
}
|
||||
debug {
|
||||
manifestPlaceholders icon_name: 'icon_beta', fileproviderPath: 'AndorsTrail.beta2'
|
||||
applicationIdSuffix 'beta2'
|
||||
versionNameSuffix = "dev"
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
beta {
|
||||
manifestPlaceholders icon_name: 'icon_beta', fileproviderPath: 'AndorsTrail.beta2'
|
||||
applicationIdSuffix 'beta2'
|
||||
versionNameSuffix = "beta"
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
}
|
||||
namespace 'com.gpl.rpg.AndorsTrail'
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
res.srcDirs = ['build/gen-res', 'src/main/res']
|
||||
assets.srcDirs = ['build/gen-assets', 'src/main/assets']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||
}
|
||||
|
||||
task copyRes(type: Copy) {
|
||||
description "Copies the res folder to the modules res folder (& renames .tmx to .xml)"
|
||||
from "${rootDir}/res"
|
||||
into "${projectDir}/build/gen-res"
|
||||
rename "(.*)\\.tmx", "\$1.xml"
|
||||
}
|
||||
|
||||
task copyResValuesIn(type: Copy) {
|
||||
description "Exception Indonesian language code (Old IN was renamed to now ID)"
|
||||
from "${rootDir}/res/values-id/"
|
||||
into "${projectDir}/build/gen-res/values-in/"
|
||||
}
|
||||
|
||||
task copyTranslation(type: Copy) {
|
||||
description("Copies the translation files to the modules translations folder")
|
||||
from "${rootDir}/assets/translation"
|
||||
into "${projectDir}/build/gen-assets/translation"
|
||||
}
|
||||
|
||||
task cleanup(type: Delete) {
|
||||
description("Deletes the assets/translation and the res folder from the modules folder")
|
||||
delete "${projectDir}/build/gen-res", "${projectDir}/build/gen-assets/translation"
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
project.tasks.copyRes.dependsOn project.tasks.copyResValuesIn
|
||||
|
||||
mapReleaseSourceSetPaths.dependsOn project.tasks.copyRes
|
||||
generateReleaseResources.dependsOn project.tasks.copyRes
|
||||
|
||||
generateDebugResources.dependsOn project.tasks.copyRes
|
||||
mapDebugSourceSetPaths.dependsOn project.tasks.copyRes
|
||||
mergeDebugResources.dependsOn project.tasks.copyRes
|
||||
extractDeepLinksDebug.dependsOn project.tasks.copyRes
|
||||
mergeReleaseResources.dependsOn project.tasks.copyRes
|
||||
extractDeepLinksRelease.dependsOn project.tasks.copyRes
|
||||
|
||||
generateDebugResources.dependsOn project.tasks.copyTranslation
|
||||
mapDebugSourceSetPaths.dependsOn project.tasks.copyTranslation
|
||||
mergeDebugAssets.dependsOn project.tasks.copyTranslation
|
||||
mergeReleaseAssets.dependsOn project.tasks.copyTranslation
|
||||
extractDeepLinksDebug.dependsOn project.tasks.copyTranslation
|
||||
extractDeepLinksRelease.dependsOn project.tasks.copyTranslation
|
||||
|
||||
clean.dependsOn project.tasks.cleanup
|
||||
implementation 'com.android.support:support-v4:28.0.0'
|
||||
}
|
||||
|
||||
@@ -2,12 +2,16 @@
|
||||
|
||||
<manifest
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.gpl.rpg.AndorsTrail"
|
||||
android:versionCode="82"
|
||||
android:versionName="0.8.15"
|
||||
package="com.gpl.rpg.AndorsTrail_beta2"
|
||||
android:versionCode="65"
|
||||
android:versionName="0.8.1beta"
|
||||
android:installLocation="auto"
|
||||
>
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="4"
|
||||
android:targetSdkVersion="30"
|
||||
/>
|
||||
|
||||
<supports-screens
|
||||
android:smallScreens="true"
|
||||
android:normalScreens="true"
|
||||
@@ -21,9 +25,9 @@
|
||||
|
||||
|
||||
<application
|
||||
android:name="com.gpl.rpg.AndorsTrail.AndorsTrailApplication"
|
||||
android:name=".AndorsTrailApplication"
|
||||
android:label="@string/app_name"
|
||||
android:icon="@drawable/${icon_name}"
|
||||
android:icon="@drawable/icon_beta"
|
||||
android:description="@string/app_description"
|
||||
android:allowBackup="true"
|
||||
android:theme="@style/AndorsTrailTheme_Blue"
|
||||
@@ -31,9 +35,8 @@
|
||||
android:hasFragileUserData="true"
|
||||
android:preserveLegacyExternalStorage="true"
|
||||
>
|
||||
<activity
|
||||
android:exported="true"
|
||||
android:name="com.gpl.rpg.AndorsTrail.activity.StartScreenActivity"
|
||||
<activity
|
||||
android:name=".activity.StartScreenActivity"
|
||||
android:clearTaskOnLaunch="true"
|
||||
>
|
||||
<intent-filter>
|
||||
@@ -42,29 +45,29 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name="com.gpl.rpg.AndorsTrail.activity.MainActivity"
|
||||
android:name=".activity.MainActivity"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AndorsTrailTheme_Blue.NoBackground"
|
||||
/>
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.HeroinfoActivity" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.MonsterInfoActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.ItemInfoActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.LevelUpActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.MonsterEncounterActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.ConversationActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.ShopActivity" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.AboutActivity" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.LoadingActivity" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.Preferences" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.LoadSaveActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.ActorConditionInfoActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.BulkSelectionInterface" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.SkillInfoActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name="com.gpl.rpg.AndorsTrail.activity.DisplayWorldMapActivity" />
|
||||
<activity android:name=".activity.HeroinfoActivity" />
|
||||
<activity android:name=".activity.MonsterInfoActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name=".activity.ItemInfoActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name=".activity.LevelUpActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name=".activity.MonsterEncounterActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name=".activity.ConversationActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name=".activity.ShopActivity" />
|
||||
<activity android:name=".activity.AboutActivity" />
|
||||
<activity android:name=".activity.LoadingActivity" />
|
||||
<activity android:name=".activity.Preferences" />
|
||||
<activity android:name=".activity.LoadSaveActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name=".activity.ActorConditionInfoActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name=".activity.BulkSelectionInterface" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name=".activity.SkillInfoActivity" android:theme="@style/AndorsTrailDialogTheme_Blue" />
|
||||
<activity android:name=".activity.DisplayWorldMapActivity" />
|
||||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="${applicationId}.fileprovider"
|
||||
android:name="android.support.v4.content.FileProvider"
|
||||
android:authorities="com.gpl.rpg.AndorsTrail_beta2.fileprovider"
|
||||
android:grantUriPermissions="true"
|
||||
android:exported="false">
|
||||
<meta-data
|
||||
|
||||
20
AndorsTrail/app/src/main/assets/translation/.gitignore
vendored
Normal file
20
AndorsTrail/app/src/main/assets/translation/.gitignore
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# Android ignores
|
||||
gen/
|
||||
bin/
|
||||
target/
|
||||
local.properties
|
||||
|
||||
#IntelliJ
|
||||
.idea/
|
||||
out/production/
|
||||
out/test/
|
||||
*.iws
|
||||
*.ipr
|
||||
|
||||
# Other
|
||||
.metadata
|
||||
.svn/
|
||||
|
||||
#/AndorsTrail/app/build/*
|
||||
#/AndorsTrail/app/release/*
|
||||
#/AndorsTrail/.gradle/*
|
||||
BIN
AndorsTrail/app/src/main/assets/translation/ar.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/ar.mo
Normal file
Binary file not shown.
59018
AndorsTrail/app/src/main/assets/translation/ar.po
Normal file
59018
AndorsTrail/app/src/main/assets/translation/ar.po
Normal file
File diff suppressed because it is too large
Load Diff
58887
AndorsTrail/app/src/main/assets/translation/az.po
Normal file
58887
AndorsTrail/app/src/main/assets/translation/az.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/bg.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/bg.mo
Normal file
Binary file not shown.
58890
AndorsTrail/app/src/main/assets/translation/bg.po
Normal file
58890
AndorsTrail/app/src/main/assets/translation/bg.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/ca.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/ca.mo
Normal file
Binary file not shown.
59063
AndorsTrail/app/src/main/assets/translation/ca.po
Normal file
59063
AndorsTrail/app/src/main/assets/translation/ca.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/ckb.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/ckb.mo
Normal file
Binary file not shown.
58887
AndorsTrail/app/src/main/assets/translation/ckb.po
Normal file
58887
AndorsTrail/app/src/main/assets/translation/ckb.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/cs.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/cs.mo
Normal file
Binary file not shown.
60779
AndorsTrail/app/src/main/assets/translation/cs.po
Normal file
60779
AndorsTrail/app/src/main/assets/translation/cs.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/de.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/de.mo
Normal file
Binary file not shown.
59975
AndorsTrail/app/src/main/assets/translation/de.po
Normal file
59975
AndorsTrail/app/src/main/assets/translation/de.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/de_AT.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/de_AT.mo
Normal file
Binary file not shown.
58885
AndorsTrail/app/src/main/assets/translation/de_AT.po
Normal file
58885
AndorsTrail/app/src/main/assets/translation/de_AT.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/el.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/el.mo
Normal file
Binary file not shown.
59001
AndorsTrail/app/src/main/assets/translation/el.po
Normal file
59001
AndorsTrail/app/src/main/assets/translation/el.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/en_devel.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/en_devel.mo
Normal file
Binary file not shown.
58885
AndorsTrail/app/src/main/assets/translation/en_devel.po
Normal file
58885
AndorsTrail/app/src/main/assets/translation/en_devel.po
Normal file
File diff suppressed because it is too large
Load Diff
58871
AndorsTrail/app/src/main/assets/translation/english.pot
Normal file
58871
AndorsTrail/app/src/main/assets/translation/english.pot
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/eo.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/eo.mo
Normal file
Binary file not shown.
58887
AndorsTrail/app/src/main/assets/translation/eo.po
Normal file
58887
AndorsTrail/app/src/main/assets/translation/eo.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/es.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/es.mo
Normal file
Binary file not shown.
59776
AndorsTrail/app/src/main/assets/translation/es.po
Normal file
59776
AndorsTrail/app/src/main/assets/translation/es.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/es_AR.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/es_AR.mo
Normal file
Binary file not shown.
58885
AndorsTrail/app/src/main/assets/translation/es_AR.po
Normal file
58885
AndorsTrail/app/src/main/assets/translation/es_AR.po
Normal file
File diff suppressed because it is too large
Load Diff
58885
AndorsTrail/app/src/main/assets/translation/eu.po
Normal file
58885
AndorsTrail/app/src/main/assets/translation/eu.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/fi.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/fi.mo
Normal file
Binary file not shown.
58897
AndorsTrail/app/src/main/assets/translation/fi.po
Normal file
58897
AndorsTrail/app/src/main/assets/translation/fi.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/fil.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/fil.mo
Normal file
Binary file not shown.
58923
AndorsTrail/app/src/main/assets/translation/fil.po
Normal file
58923
AndorsTrail/app/src/main/assets/translation/fil.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/fr.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/fr.mo
Normal file
Binary file not shown.
59768
AndorsTrail/app/src/main/assets/translation/fr.po
Normal file
59768
AndorsTrail/app/src/main/assets/translation/fr.po
Normal file
File diff suppressed because it is too large
Load Diff
58887
AndorsTrail/app/src/main/assets/translation/fr_AG.po
Normal file
58887
AndorsTrail/app/src/main/assets/translation/fr_AG.po
Normal file
File diff suppressed because it is too large
Load Diff
58897
AndorsTrail/app/src/main/assets/translation/gl.po
Normal file
58897
AndorsTrail/app/src/main/assets/translation/gl.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/he.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/he.mo
Normal file
Binary file not shown.
58924
AndorsTrail/app/src/main/assets/translation/he.po
Normal file
58924
AndorsTrail/app/src/main/assets/translation/he.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/hi.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/hi.mo
Normal file
Binary file not shown.
58885
AndorsTrail/app/src/main/assets/translation/hi.po
Normal file
58885
AndorsTrail/app/src/main/assets/translation/hi.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/hu.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/hu.mo
Normal file
Binary file not shown.
59078
AndorsTrail/app/src/main/assets/translation/hu.po
Normal file
59078
AndorsTrail/app/src/main/assets/translation/hu.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/id.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/id.mo
Normal file
Binary file not shown.
59164
AndorsTrail/app/src/main/assets/translation/id.po
Normal file
59164
AndorsTrail/app/src/main/assets/translation/id.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/it.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/it.mo
Normal file
Binary file not shown.
59734
AndorsTrail/app/src/main/assets/translation/it.po
Normal file
59734
AndorsTrail/app/src/main/assets/translation/it.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/ja.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/ja.mo
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/ko.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/ko.mo
Normal file
Binary file not shown.
58994
AndorsTrail/app/src/main/assets/translation/ko.po
Normal file
58994
AndorsTrail/app/src/main/assets/translation/ko.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/ms.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/ms.mo
Normal file
Binary file not shown.
58910
AndorsTrail/app/src/main/assets/translation/ms.po
Normal file
58910
AndorsTrail/app/src/main/assets/translation/ms.po
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
58923
AndorsTrail/app/src/main/assets/translation/nb.po
Normal file
58923
AndorsTrail/app/src/main/assets/translation/nb.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/nl.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/nl.mo
Normal file
Binary file not shown.
58949
AndorsTrail/app/src/main/assets/translation/nl.po
Normal file
58949
AndorsTrail/app/src/main/assets/translation/nl.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/pa.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/pa.mo
Normal file
Binary file not shown.
58910
AndorsTrail/app/src/main/assets/translation/pa.po
Normal file
58910
AndorsTrail/app/src/main/assets/translation/pa.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/pl.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/pl.mo
Normal file
Binary file not shown.
60980
AndorsTrail/app/src/main/assets/translation/pl.po
Normal file
60980
AndorsTrail/app/src/main/assets/translation/pl.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/ps.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/ps.mo
Normal file
Binary file not shown.
58887
AndorsTrail/app/src/main/assets/translation/ps.po
Normal file
58887
AndorsTrail/app/src/main/assets/translation/ps.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/pt.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/pt.mo
Normal file
Binary file not shown.
59614
AndorsTrail/app/src/main/assets/translation/pt.po
Normal file
59614
AndorsTrail/app/src/main/assets/translation/pt.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/pt_BR.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/pt_BR.mo
Normal file
Binary file not shown.
60063
AndorsTrail/app/src/main/assets/translation/pt_BR.po
Normal file
60063
AndorsTrail/app/src/main/assets/translation/pt_BR.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/ro.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/ro.mo
Normal file
Binary file not shown.
58894
AndorsTrail/app/src/main/assets/translation/ro.po
Normal file
58894
AndorsTrail/app/src/main/assets/translation/ro.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/ru.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/ru.mo
Normal file
Binary file not shown.
60100
AndorsTrail/app/src/main/assets/translation/ru.po
Normal file
60100
AndorsTrail/app/src/main/assets/translation/ru.po
Normal file
File diff suppressed because it is too large
Load Diff
58900
AndorsTrail/app/src/main/assets/translation/sl.po
Normal file
58900
AndorsTrail/app/src/main/assets/translation/sl.po
Normal file
File diff suppressed because it is too large
Load Diff
58887
AndorsTrail/app/src/main/assets/translation/sq.po
Normal file
58887
AndorsTrail/app/src/main/assets/translation/sq.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/sv.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/sv.mo
Normal file
Binary file not shown.
58926
AndorsTrail/app/src/main/assets/translation/sv.po
Normal file
58926
AndorsTrail/app/src/main/assets/translation/sv.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/ta.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/ta.mo
Normal file
Binary file not shown.
58887
AndorsTrail/app/src/main/assets/translation/ta.po
Normal file
58887
AndorsTrail/app/src/main/assets/translation/ta.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/th.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/th.mo
Normal file
Binary file not shown.
58940
AndorsTrail/app/src/main/assets/translation/th.po
Normal file
58940
AndorsTrail/app/src/main/assets/translation/th.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/tr.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/tr.mo
Normal file
Binary file not shown.
59157
AndorsTrail/app/src/main/assets/translation/tr.po
Normal file
59157
AndorsTrail/app/src/main/assets/translation/tr.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/uk.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/uk.mo
Normal file
Binary file not shown.
59049
AndorsTrail/app/src/main/assets/translation/uk.po
Normal file
59049
AndorsTrail/app/src/main/assets/translation/uk.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/zh_CN.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/zh_CN.mo
Normal file
Binary file not shown.
59923
AndorsTrail/app/src/main/assets/translation/zh_CN.po
Normal file
59923
AndorsTrail/app/src/main/assets/translation/zh_CN.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
AndorsTrail/app/src/main/assets/translation/zh_TW.mo
Normal file
BIN
AndorsTrail/app/src/main/assets/translation/zh_TW.mo
Normal file
Binary file not shown.
58977
AndorsTrail/app/src/main/assets/translation/zh_TW.po
Normal file
58977
AndorsTrail/app/src/main/assets/translation/zh_TW.po
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,225 +0,0 @@
|
||||
package com.gpl.rpg.AndorsTrail;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Locale;
|
||||
|
||||
import com.gpl.rpg.AndorsTrail.context.ControllerContext;
|
||||
import com.gpl.rpg.AndorsTrail.context.WorldContext;
|
||||
import com.gpl.rpg.AndorsTrail.controller.Constants;
|
||||
import com.gpl.rpg.AndorsTrail.util.AndroidStorage;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Insets;
|
||||
import android.os.Build;
|
||||
import android.os.Environment;
|
||||
import android.util.Pair;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowInsets;
|
||||
import android.view.WindowInsetsController;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import androidx.annotation.RequiresApi;
|
||||
|
||||
|
||||
public final class AndorsTrailApplication extends Application {
|
||||
public static final String CURRENT_VERSION_DISPLAY = BuildConfig.VERSION_NAME;
|
||||
public static final boolean IS_DEV_VERSION = CURRENT_VERSION_DISPLAY.endsWith("dev");
|
||||
public static final boolean IS_BETA_VERSION = CURRENT_VERSION_DISPLAY.endsWith("beta");
|
||||
public static final boolean IS_RELEASE_VERSION = !CURRENT_VERSION_DISPLAY.matches(".*[a-zA-Z].*");
|
||||
|
||||
public static final boolean DEVELOPMENT_DEBUGRESOURCES = false;
|
||||
public static final boolean DEVELOPMENT_FORCE_STARTNEWGAME = false;
|
||||
public static final boolean DEVELOPMENT_FORCE_CONTINUEGAME = false;
|
||||
public static final boolean DEVELOPMENT_DEBUGBUTTONS = IS_DEV_VERSION;
|
||||
public static final boolean DEVELOPMENT_FASTSPEED = false;
|
||||
public static final boolean DEVELOPMENT_VALIDATEDATA = IS_BETA_VERSION;
|
||||
public static final boolean DEVELOPMENT_DEBUGMESSAGES = IS_DEV_VERSION;
|
||||
public static final boolean DEVELOPMENT_INCOMPATIBLE_SAVEGAMES = DEVELOPMENT_DEBUGRESOURCES || DEVELOPMENT_DEBUGBUTTONS || DEVELOPMENT_FASTSPEED || !IS_RELEASE_VERSION;
|
||||
public static final int DEVELOPMENT_INCOMPATIBLE_SAVEGAME_VERSION = 999;
|
||||
public static final int CURRENT_VERSION = DEVELOPMENT_INCOMPATIBLE_SAVEGAMES ? DEVELOPMENT_INCOMPATIBLE_SAVEGAME_VERSION : BuildConfig.VERSION_CODE;
|
||||
|
||||
private final AndorsTrailPreferences preferences = new AndorsTrailPreferences();
|
||||
private WorldContext world = new WorldContext();
|
||||
private ControllerContext controllers = new ControllerContext(this, world);
|
||||
private WorldSetup setup = new WorldSetup(world, controllers, this);
|
||||
public WorldContext getWorld() { return world; }
|
||||
public WorldSetup getWorldSetup() { return setup; }
|
||||
public AndorsTrailPreferences getPreferences() { return preferences; }
|
||||
public ControllerContext getControllerContext() { return controllers; }
|
||||
|
||||
public static AndorsTrailApplication getApplicationFromActivity(Activity activity) {
|
||||
return ((AndorsTrailApplication) activity.getApplication());
|
||||
}
|
||||
public static AndorsTrailApplication getApplicationFromActivityContext(Context context) {
|
||||
return getApplicationFromActivity(getActivityFromActivityContext(context));
|
||||
}
|
||||
private static Activity getActivityFromActivityContext(Context context) {
|
||||
return (Activity) context;
|
||||
}
|
||||
|
||||
public boolean isInitialized() { return world.model != null; }
|
||||
|
||||
public void setWindowParameters(Activity activity) {
|
||||
activity.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
}
|
||||
|
||||
public void setFullscreenMode(Activity activity) {
|
||||
setFullscreenMode(preferences.fullscreen, activity.getWindow());
|
||||
}
|
||||
public static void setFullscreenMode(boolean fullscreen, Window window) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
|
||||
final WindowInsetsController insetsController = window.getInsetsController();
|
||||
if (insetsController != null) {
|
||||
insetsController.setSystemBarsBehavior(WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE);
|
||||
int insetType = WindowInsets.Type.statusBars();
|
||||
if (fullscreen) {
|
||||
insetsController.hide(insetType);
|
||||
} else {
|
||||
insetsController.show(insetType);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (fullscreen) {
|
||||
window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||
|
||||
} else {
|
||||
window.setFlags(0, WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.R)
|
||||
public int getUsableTouchAreaInsetMask(){
|
||||
int i = 0;
|
||||
i |= WindowInsets.Type.displayCutout();
|
||||
i |= WindowInsets.Type.navigationBars();
|
||||
if (!preferences.fullscreen) {
|
||||
i |= WindowInsets.Type.statusBars();
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
//Get default locale at startup, as somehow it seems that changing the app's
|
||||
//configured locale impacts the value returned by Locale.getDefault() nowadays.
|
||||
private final Locale defaultLocale = Locale.getDefault();
|
||||
|
||||
private Pair<String, Locale> lastLocale = null;
|
||||
|
||||
public boolean setLocale(Activity context) {
|
||||
Resources res = context.getResources();
|
||||
Configuration conf = res.getConfiguration();
|
||||
|
||||
Locale targetLocale;
|
||||
|
||||
if (lastLocale != null && lastLocale.first == preferences.language) {
|
||||
targetLocale = lastLocale.second;
|
||||
} else {
|
||||
targetLocale = localeForLanguageTag(preferences.language);
|
||||
lastLocale = new Pair<String, Locale>(preferences.language, targetLocale);
|
||||
}
|
||||
|
||||
if (targetLocale.equals(conf.locale)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
conf.locale = targetLocale;
|
||||
res.updateConfiguration(conf, res.getDisplayMetrics());
|
||||
this.getResources().updateConfiguration(conf, res.getDisplayMetrics());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Supports language or language_COUNTRY in short form e.g. "en" or "en_US"
|
||||
private Locale localeForLanguageTag(String languageTag) {
|
||||
Locale locale = null;
|
||||
if (languageTag != null && !languageTag.equalsIgnoreCase("default")) {
|
||||
final int pos = languageTag.indexOf('-');
|
||||
if (pos == -1) {
|
||||
locale = new Locale(languageTag);
|
||||
}
|
||||
else locale = new Locale(languageTag.substring(0, pos), languageTag.substring(pos+1));
|
||||
}
|
||||
if (locale == null) {
|
||||
locale = defaultLocale;
|
||||
}
|
||||
return locale;
|
||||
}
|
||||
|
||||
/**
|
||||
* Logging to text file system as found on https://stackoverflow.com/questions/19565685/saving-logcat-to-a-text-file-in-android-device
|
||||
*/
|
||||
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
||||
if ( DEVELOPMENT_DEBUGMESSAGES && isExternalStorageWritable() ) {
|
||||
File appDirectory = AndroidStorage.getStorageDirectory(getApplicationContext(), Constants.FILENAME_SAVEGAME_DIRECTORY);
|
||||
File logDirectory = new File( appDirectory, "log" );
|
||||
File logFile = new File( logDirectory, "logcat" + System.currentTimeMillis() + ".txt" );
|
||||
|
||||
// create app folder
|
||||
if ( !appDirectory.exists() ) {
|
||||
appDirectory.mkdir();
|
||||
}
|
||||
|
||||
// create log folder
|
||||
if ( !logDirectory.exists() ) {
|
||||
logDirectory.mkdir();
|
||||
}
|
||||
|
||||
// clear the previous logcat and then write the new one to the file
|
||||
try {
|
||||
Process process = Runtime.getRuntime().exec("logcat -c");
|
||||
process = Runtime.getRuntime().exec("logcat -f " + logFile+" *:W");
|
||||
} catch ( IOException e ) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* Checks if external storage is available for read and write */
|
||||
public boolean isExternalStorageWritable() {
|
||||
String state = Environment.getExternalStorageState();
|
||||
if ( Environment.MEDIA_MOUNTED.equals( state ) ) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Checks if external storage is available to at least read */
|
||||
public boolean isExternalStorageReadable() {
|
||||
String state = Environment.getExternalStorageState();
|
||||
if ( Environment.MEDIA_MOUNTED.equals( state ) ||
|
||||
Environment.MEDIA_MOUNTED_READ_ONLY.equals( state ) ) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public void discardWorld() {
|
||||
world = new WorldContext();
|
||||
controllers = new ControllerContext(this, world);
|
||||
setup = new WorldSetup(world, controllers, getApplicationContext());
|
||||
}
|
||||
|
||||
public void setUsablePadding(View root) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
root.setOnApplyWindowInsetsListener((v, insets) -> {
|
||||
Insets bars = insets.getInsets(getUsableTouchAreaInsetMask());
|
||||
int left = Math.max(bars.left, v.getPaddingLeft());
|
||||
int top = Math.max(bars.top, v.getPaddingTop());
|
||||
int right = Math.max(bars.right, v.getPaddingRight());
|
||||
int bottom = Math.max(bars.bottom, v.getPaddingBottom());
|
||||
v.setPadding(left, top, right, bottom);
|
||||
return WindowInsets.CONSUMED;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
package com.gpl.rpg.AndorsTrail.activity;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.annotation.IdRes;
|
||||
import androidx.annotation.LayoutRes;
|
||||
|
||||
import com.gpl.rpg.AndorsTrail.AndorsTrailApplication;
|
||||
|
||||
public abstract class AndorsTrailBaseActivity extends Activity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
AndorsTrailApplication app = AndorsTrailApplication.getApplicationFromActivity(this);
|
||||
app.setLocale(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
AndorsTrailApplication app = AndorsTrailApplication.getApplicationFromActivity(this);
|
||||
app.setLocale(this);
|
||||
}
|
||||
protected void initializeView(Activity activity, @LayoutRes int layoutId, @IdRes int rootViewId) {
|
||||
AndorsTrailApplication app = AndorsTrailApplication.getApplicationFromActivity(activity);
|
||||
app.setWindowParameters(activity);
|
||||
activity.setContentView(layoutId);
|
||||
View root = activity.findViewById(rootViewId);
|
||||
app.setUsablePadding(root);
|
||||
app.setFullscreenMode(activity);
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user