Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Commit ef5a45e

Browse files
authored
Merge pull request #2 from l3ger0j/unstable
Update
2 parents c2ad54a + 461d959 commit ef5a45e

70 files changed

Lines changed: 3329 additions & 4221 deletions

File tree

Some content is hidden

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

app/build.gradle

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

app/build.gradle.kts

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
plugins {
2+
alias(libs.plugins.android.application)
3+
alias(libs.plugins.kotlin.android)
4+
}
5+
6+
android {
7+
namespace = "org.qp.android.questopiabundle"
8+
compileSdk = 35
9+
10+
defaultConfig {
11+
applicationId = "org.qp.android.questopiabundle"
12+
minSdk = 26
13+
targetSdk = 34
14+
versionCode = 100000
15+
versionName = "0.1.0"
16+
17+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
18+
}
19+
20+
buildTypes {
21+
release {
22+
isMinifyEnabled = false
23+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
24+
}
25+
}
26+
27+
compileOptions {
28+
sourceCompatibility = JavaVersion.VERSION_17
29+
targetCompatibility = JavaVersion.VERSION_17
30+
}
31+
32+
kotlinOptions {
33+
jvmTarget = "17"
34+
}
35+
36+
buildFeatures {
37+
buildConfig = true
38+
aidl = true
39+
}
40+
41+
}
42+
43+
dependencies {
44+
implementation(project(":libalpha"))
45+
implementation(project(":libbravo"))
46+
implementation(project(":libcharlie"))
47+
48+
implementation(libs.androidx.core.ktx)
49+
implementation(libs.androidx.appcompat)
50+
implementation(libs.material)
51+
implementation(libs.androidx.constraintlayout)
52+
53+
implementation(libs.storage)
54+
implementation(libs.jsoup)
55+
56+
testImplementation(libs.junit)
57+
androidTestImplementation(libs.androidx.junit)
58+
androidTestImplementation(libs.androidx.espresso.core)
59+
}

app/src/main/AndroidManifest.xml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5-
<uses-permission android:name="android.permission.INTERNET"/>
5+
<uses-permission android:name="android.permission.INTERNET" />
6+
7+
<queries android:exported="false">
8+
<package android:name="com.google.android.documentsui" />
9+
<package android:name="com.google.android.apps.docs" />
10+
<package android:name="com.android.microdroid.empty_payload" />
11+
</queries>
612

713
<application
814
android:allowBackup="true"
@@ -16,13 +22,14 @@
1622

1723
<service
1824
android:name=".QuestopiaBundle"
25+
android:exported="true"
1926
android:permission="android.permission.INTERNET"
20-
android:process=":remote"
21-
android:exported="true">
27+
android:process=":remote">
2228
<intent-filter>
23-
<action android:name="org.qp.intent.action.PICK_PLUGIN"/>
29+
<action android:name="org.qp.intent.action.PICK_PLUGIN" />
2430
<action android:name="org.qp.android.plugin.ENGINE_PLUGIN" />
25-
<category android:name="org.qp.intent.category.ADD_PLUGIN"/>
31+
32+
<category android:name="org.qp.intent.category.ADD_PLUGIN" />
2633
</intent-filter>
2734
</service>
2835

app/src/main/aidl/org/qp/android/questopiabundle/AsyncCallbacks.aidl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package org.qp.android.questopiabundle;
22

3+
import android.net.Uri;
34
import org.qp.android.questopiabundle.LibResult;
45
import org.qp.android.questopiabundle.LibException;
56
import org.qp.android.questopiabundle.LibDialogRetValue;
67

78
interface AsyncCallbacks {
8-
void sendLibGameState(in LibResult libResult);
9-
void sendLibRef(in LibResult libResult);
9+
void updateState(in LibResult refReq, in LibResult newState);
1010
void sendChangeCurrGameDir(in Uri gameDirUri);
1111

1212
LibDialogRetValue doOnShowDialog(in LibResult typeDialog, String inputString);
@@ -17,5 +17,8 @@ interface AsyncCallbacks {
1717
void closeFile(String filePath);
1818
void playFile(String path, int volume);
1919

20+
Uri requestReceiveFile(in String filePath);
21+
Uri requestCreateFile(in Uri fileUri, String path);
22+
2023
void onError(in LibException libException);
2124
}

app/src/main/java/org/qp/android/questopiabundle/GameInterface.java

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package org.qp.android.questopiabundle
2+
3+
import android.net.Uri
4+
import org.qp.android.questopiabundle.lib.LibRefIRequest
5+
import org.qp.android.questopiabundle.lib.LibTypeDialog
6+
import org.qp.android.questopiabundle.lib.LibTypeWindow
7+
8+
interface GameInterface {
9+
fun requestReceiveFile(filePath: String): Uri
10+
fun requestCreateFile(dirUri: Uri, path: String): Uri
11+
fun isPlayingFile(filePath: String): Boolean
12+
fun closeAllFiles()
13+
fun closeFile(filePath: String?)
14+
fun playFile(path: String?, volume: Int)
15+
fun doChangeCurrGameDir(newGameDirUri: Uri?)
16+
fun doUpdateState(request: LibRefIRequest)
17+
fun showLibDialog(dialog: LibTypeDialog?, inputString: String?): LibDialogRetValue?
18+
fun changeVisWindow(type: LibTypeWindow?, show: Boolean)
19+
/**
20+
* Set the counter location processing interval to `delayMillis` milliseconds.
21+
*/
22+
fun setCountInter(delayMillis: Int)
23+
/**
24+
* Execute `runnable` without processing the location counter.
25+
*/
26+
fun doWithCounterDisabled(runnable: Runnable?)
27+
}

app/src/main/java/org/qp/android/questopiabundle/LibDialogRetValue.java

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package org.qp.android.questopiabundle
2+
3+
import android.os.Parcel
4+
import android.os.Parcelable
5+
6+
data class LibDialogRetValue(
7+
val outTextValue: String = "",
8+
val outNumValue: Int = 0
9+
) : Parcelable {
10+
11+
constructor(source: Parcel) : this(
12+
source.readString() ?: "",
13+
source.readInt()
14+
)
15+
16+
override fun describeContents(): Int = 0
17+
18+
override fun writeToParcel(dest: Parcel, flags: Int) {
19+
dest.writeString(outTextValue)
20+
dest.writeInt(outNumValue)
21+
}
22+
23+
companion object CREATOR : Parcelable.Creator<LibDialogRetValue> {
24+
override fun createFromParcel(source: Parcel): LibDialogRetValue {
25+
return LibDialogRetValue(source)
26+
}
27+
28+
override fun newArray(size: Int): Array<LibDialogRetValue?> {
29+
return arrayOfNulls(size)
30+
}
31+
}
32+
}

app/src/main/java/org/qp/android/questopiabundle/LibException.java

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

0 commit comments

Comments
 (0)