Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
43 changes: 43 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Android CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build

# Upload artifacts so they are available from the run
- name: Upload APK(s)
uses: actions/upload-artifact@v4
with:
name: app-apks
path: app/build/outputs/apk/**/*.apk
# optional: set retention days (default retention configured in repo/org settings)
retention-days: 30

- name: Upload full build directory (optional)
uses: actions/upload-artifact@v4
with:
name: gradle-build
path: app/build
retention-days: 30
14 changes: 7 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion '29.0.3'
lintOptions {
disable "ExpiredTargetSdkVersion"
}
compileSdkVersion 36
defaultConfig {
applicationId "com.holokenmod"
minSdkVersion 8
targetSdkVersion 22
minSdkVersion 24
targetSdkVersion 36
}

buildTypes {
Expand All @@ -17,6 +13,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
namespace 'com.holokenmod'
lint {
disable 'ExpiredTargetSdkVersion'
}
}
repositories {
google()
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.holokenmod"
android:versionCode="21"
android:versionName="1.6.1" android:installLocation="auto">
<!--
Expand All @@ -16,7 +15,8 @@
>
<activity
android:name=".MainActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
android:id="@+id/container"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fitsSystemWindows="true"
android:orientation="vertical"
tools:context=".MainActivity">

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_savegame.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
android:id="@+id/saveGameContainer"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fitsSystemWindows="true"
android:orientation="vertical"
android:background="#FFf3efe7"
tools:context=".SaveGameListActivity" >
Expand All @@ -22,7 +23,7 @@
<ImageButton android:id="@+id/discardbutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/button_discard_light"/>
android:src="@drawable/button_discard_light"/>
</LinearLayout>

<LinearLayout android:layout_width="fill_parent"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_stats.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
android:id="@+id/statsscroller"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fitsSystemWindows="true"
android:fillViewport="true"
tools:context=".SettingsActivity" >

Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/layout/dialog_about.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/about_layout"
android:id="@+id/about_layout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fitsSystemWindows="true"
android:padding="10dp" >
<LinearLayout
android:orientation="vertical"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/dialog_help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fitsSystemWindows="true"
android:padding="10dp" >
<LinearLayout
android:orientation="vertical"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/dialog_mode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true"
android:id="@+id/mode_layout"
android:padding="8dp">

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/object_savegame.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true"
android:background="#FFf3efe7">

<com.holokenmod.GridView
Expand Down
13 changes: 5 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
repositories {
mavenCentral()
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.2'
classpath 'com.android.tools.build:gradle:8.13.0'
}
}

allprojects {
repositories {
jcenter()
}
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
android.nonFinalResIds=false
android.nonTransitiveRClass=false
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Apr 03 14:47:23 EDT 2020
#Mon Oct 20 16:28:47 PDT 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
Loading