Compare commits

..

18 Commits

Author SHA1 Message Date
OMGeeky
7d194535d9 Update gradle.yml 2022-10-10 09:36:01 +02:00
OMGeeky
5364737471 Update gradle.yml 2022-10-10 09:32:43 +02:00
OMGeeky
448547c62d Update gradle.yml 2022-10-09 19:27:11 +02:00
OMGeeky
99ac4bb532 Update gradle.yml 2022-10-09 19:24:35 +02:00
OMGeeky
b93d3227fb Update gradle.yml 2022-10-09 19:18:26 +02:00
OMGeeky
d34723ad04 Update gradle.yml 2022-10-09 19:16:14 +02:00
OMGeeky
b236635735 Update gradle.yml 2022-10-09 19:10:36 +02:00
OMGeeky
6b66bebc3f Update gradle.yml 2022-10-09 19:07:58 +02:00
OMGeeky
71eafc368a Update gradle.yml 2022-10-09 19:04:42 +02:00
OMGeeky
573816dc20 Update gradle.yml
changed gradle build root dir
2022-10-09 18:58:59 +02:00
OMGeeky
0fbc290492 Update gradle.yml 2022-10-09 18:52:20 +02:00
OMGeeky
1c4290458f Create gradle.yml 2022-10-09 18:44:45 +02:00
OMGeeky
5b4b537028 Merge branch 'fix-older-android-versions' 2022-10-09 02:16:21 +02:00
OMGeeky
6946b1f2b3 Fixed problems with older Android versions (below Android 7) 2022-10-09 02:00:52 +02:00
OMGeeky
8e60423735 Added 'exported="true"' to the launch activity and removed redundant lines from AndroidManifest.xml 2022-10-09 00:44:06 +02:00
OMGeeky
f9a752ab8a Fixed problems with older Android versions (below Android 7) 2022-10-09 00:41:53 +02:00
OMGeeky
79a1416616 Removed local specific file 2022-10-09 00:26:38 +02:00
OMGeeky
8275f0110a Removed .idea files 2022-10-09 00:17:15 +02:00
24 changed files with 30 additions and 54 deletions

View File

@@ -8,12 +8,21 @@
name: Build Gradle
on: workflow_dispatch
# on: [pull_request]
# push:
# branches: ["gradle_auto_copy" ]
# pull_request:
# branches: ["master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:

View File

@@ -40,6 +40,9 @@ gradle-app.setting
# Cache of project
.gradletasknamecache
local.properties
# Eclipse Gradle plugin generated files
# Eclipse Core
.project

Binary file not shown.

View File

View File

View File

@@ -1,10 +1,6 @@
apply plugin: 'com.android.application'
android {
lintOptions{
baseline file("lint.xml")
abortOnError true
}
compileSdkVersion 30
buildToolsVersion "30.0.3"
@@ -23,29 +19,5 @@ android {
}
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}/src/main/res"
rename "(.*)\\.tmx", "\$1.xml"
}
task copyTranslation(type: Copy) {
description("Copies the translation files to the modules translations folder")
from "${rootDir}/assets/translation"
into "${projectDir}/src/main/assets/translation"
}
task cleanup(type: Delete) {
description("Deletes the assets/translation and the res folder from the modules folder")
delete "${projectDir}/src/main/res", "${projectDir}/src/main/assets/translation"
}
afterEvaluate {
preBuild.dependsOn project.tasks.copyRes
preBuild.dependsOn project.tasks.copyTranslation
clean.dependsOn project.tasks.cleanup
implementation 'com.android.support:support-v4:28.0.0'
}

View File

@@ -9,7 +9,5 @@
<issue id="IconLocation" severity="ignore" />
<issue id="UnusedResources" severity="ignore" />
<issue id="DefaultLocale" severity="ignore" />
<issue id="StringFormatInvalid" severity="ignore" />
<issue id="StringFormatMatches" severity="ignore" />
<issue id="NewApi" severity="error" />
</lint>

View File

@@ -7,10 +7,7 @@
android:versionName="0.8.2"
android:installLocation="auto"
>
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="30"
/>
<supports-screens
android:smallScreens="true"
@@ -38,7 +35,7 @@
<activity
android:name="com.gpl.rpg.AndorsTrail.activity.StartScreenActivity"
android:clearTaskOnLaunch="true"
>
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
@@ -46,7 +43,6 @@
</activity>
<activity
android:name="com.gpl.rpg.AndorsTrail.activity.MainActivity"
android:label="@string/app_name"
android:theme="@style/AndorsTrailTheme_Blue.NoBackground"
/>
<activity android:name="com.gpl.rpg.AndorsTrail.activity.HeroinfoActivity" />
@@ -66,7 +62,7 @@
<activity android:name="com.gpl.rpg.AndorsTrail.activity.DisplayWorldMapActivity" />
<provider
android:name="androidx.core.content.FileProvider"
android:name="android.support.v4.content.FileProvider"
android:authorities="com.gpl.rpg.AndorsTrail.fileprovider"
android:grantUriPermissions="true"
android:exported="false">

View File

@@ -15,7 +15,7 @@ import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.support.v4.app.Fragment;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;

View File

@@ -1,7 +1,7 @@
package com.gpl.rpg.AndorsTrail.activity;
import android.os.Bundle;
import androidx.fragment.app.FragmentActivity;
import android.support.v4.app.FragmentActivity;
import com.gpl.rpg.AndorsTrail.AndorsTrailApplication;

View File

@@ -2,7 +2,7 @@ package com.gpl.rpg.AndorsTrail.activity;
import android.content.res.Resources;
import android.os.Bundle;
import androidx.fragment.app.FragmentTabHost;
import android.support.v4.app.FragmentTabHost;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.ImageView;

View File

@@ -2,7 +2,7 @@ package com.gpl.rpg.AndorsTrail.activity;
import android.content.res.Resources;
import android.os.Bundle;
import androidx.fragment.app.FragmentTabHost;
import android.support.v4.app.FragmentTabHost;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.ImageView;

View File

@@ -20,8 +20,8 @@ import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager.OnBackStackChangedListener;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager.OnBackStackChangedListener;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewTreeObserver;

View File

@@ -5,7 +5,7 @@ import java.util.Arrays;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;

View File

@@ -8,7 +8,7 @@ import java.util.Map;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

View File

@@ -5,7 +5,7 @@ import java.util.ArrayList;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

View File

@@ -5,7 +5,7 @@ import java.util.ArrayList;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;

View File

@@ -4,7 +4,7 @@ import java.util.HashSet;
import android.content.res.Resources;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

View File

@@ -12,7 +12,7 @@ import android.content.SharedPreferences.Editor;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;

View File

@@ -3,7 +3,7 @@ package com.gpl.rpg.AndorsTrail.activity.fragment;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;

View File

@@ -4,7 +4,7 @@ import android.content.Context;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import androidx.core.content.FileProvider;
import android.support.v4.content.FileProvider;
import com.gpl.rpg.AndorsTrail.controller.Constants;

View File

@@ -1,2 +0,0 @@
android.enableJetifier=true
android.useAndroidX=true