Skip to content

Commit 8e16765

Browse files
authored
Rename project to DroidRay (#3)
* Also replaced the screenshots and app's icons to reflect the changes * Added a small fix to open document intent handling
1 parent 6763cb1 commit 8e16765

Some content is hidden

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

42 files changed

+54
-55
lines changed

.github/images/screen_editor.jpeg

25.9 KB

.github/images/screen_logger.jpeg

57.4 KB

.github/images/screen_preview.jpeg

8.25 KB

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ plugins {
77
}
88

99
android {
10-
namespace = "com.flykespice.povray"
10+
namespace = "com.flykespice.droidray"
1111
compileSdk = 36
1212

1313
defaultConfig {
14-
applicationId = "com.flykespice.povray"
14+
applicationId = "com.flykespice.droidray"
1515
minSdk = 21
1616
targetSdk = 35
1717
versionCode = 1

app/src/androidTest/java/com/flykespice/povray/ExampleInstrumentedTest.kt renamed to app/src/androidTest/java/com/flykespice/droidray/ExampleInstrumentedTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.flykespice.povray
1+
package com.flykespice.droidray
22

33
import androidx.test.platform.app.InstrumentationRegistry
44
import androidx.test.ext.junit.runners.AndroidJUnit4

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
android:label="@string/app_name"
1111
android:roundIcon="@mipmap/ic_launcher_round"
1212
android:supportsRtl="true"
13-
android:theme="@style/Theme.POVRay"
13+
android:theme="@style/Theme.DroidRay"
1414
tools:targetApi="31">
1515
<activity
1616
android:name=".MainActivity"
1717
android:screenOrientation="portrait"
1818
android:windowSoftInputMode="adjustResize"
1919
android:exported="true"
2020
android:label="@string/app_name"
21-
android:theme="@style/Theme.POVRay">
21+
android:theme="@style/Theme.DroidRay">
2222
<intent-filter>
2323
<action android:name="android.intent.action.MAIN" />
2424

app/src/main/cpp/povray/vfe/android/jni.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
using namespace vfe;
1414

15-
#define JNI_POVRAY_METHOD(func) Java_com_flykespice_povray_POVRay_##func
15+
#define JNI_POVRAY_METHOD(func) Java_com_flykespice_droidray_POVRay_##func
1616

1717
//#define DELETE_FILE unlink
1818

@@ -122,7 +122,7 @@ extern "C" JNIEXPORT jint JNICALL JNI_POVRAY_METHOD(renderScene) (JNIEnv* env, j
122122
if (imageBuffer == nullptr)
123123
{
124124
// Step 1: Find the Java class containing the static ByteBuffer
125-
jclass myClass = env->FindClass("com/flykespice/povray/POVRay");
125+
jclass myClass = env->FindClass("com/flykespice/droidray/POVRay");
126126
if (myClass == nullptr)
127127
{
128128
throwRuntimeException(env, "POVRay class not found");
@@ -211,7 +211,7 @@ extern "C" JNIEXPORT jstring JNICALL JNI_POVRAY_METHOD(getErrorString) (JNIEnv*
211211

212212
extern "C" JNIEXPORT jobjectArray JNICALL JNI_POVRAY_METHOD(getMessages) (JNIEnv* env, jobject thisObject)
213213
{
214-
jclass msgClass = env->FindClass("com/flykespice/povray/POVRay$Message");
214+
jclass msgClass = env->FindClass("com/flykespice/droidray/POVRay$Message");
215215
if (!msgClass)
216216
throwRuntimeException(env, "POVRay.Message class couldn't be found");
217217

-53.7 KB

app/src/main/java/com/flykespice/povray/AppState.kt renamed to app/src/main/java/com/flykespice/droidray/AppState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.flykespice.povray
1+
package com.flykespice.droidray
22

33
/**
44
* This stores the application state for the duration of the process in a simple way

app/src/main/java/com/flykespice/povray/MainActivity.kt renamed to app/src/main/java/com/flykespice/droidray/MainActivity.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.flykespice.povray
1+
package com.flykespice.droidray
22

33
import android.graphics.Bitmap
44
import android.net.Uri
@@ -8,8 +8,8 @@ import androidx.activity.compose.setContent
88
import androidx.activity.enableEdgeToEdge
99
import androidx.activity.result.contract.ActivityResultContracts
1010
import androidx.compose.material3.Surface
11-
import com.flykespice.povray.ui.POVRayApp
12-
import com.flykespice.povray.ui.theme.POVRayTheme
11+
import com.flykespice.droidray.ui.POVRayApp
12+
import com.flykespice.droidray.ui.theme.DroidRayTheme
1313
import java.io.File
1414
import java.io.FileNotFoundException
1515
import java.io.FileOutputStream
@@ -58,9 +58,9 @@ class MainActivity : ComponentActivity() {
5858
includeDir.mkdirs()
5959
copyAssetsToInternalStorage(includeDir)
6060
}/* else {
61-
Log.d("POVRay", "directory include contents =")
61+
Log.d("DroidRay", "directory include contents =")
6262
for (file in includeDir.list().toList()) {
63-
Log.d("POVRay", "$file")
63+
Log.d("DroidRay", "$file")
6464
}
6565
}*/
6666

@@ -78,11 +78,11 @@ class MainActivity : ComponentActivity() {
7878

7979
enableEdgeToEdge()
8080
setContent {
81-
POVRayTheme {
81+
DroidRayTheme {
8282
Surface {
8383
POVRayApp(
8484
onSaveBitmap = { bitmap = it; launcherBitmapExporter.launch("render.png") },
85-
onClickOpen = { launcherOpener.launch(arrayOf("application/octet-stream")) },
85+
onClickOpen = { launcherOpener.launch(arrayOf("text/*", "application/*")) },
8686
onClickSave = { launcherSaver.launch(AppState.lastOpenedName ?: "scene.pov")}
8787
)
8888
}

0 commit comments

Comments
 (0)