feat: allow android apps with any name, fix android + windows for aarch64 target (#3213)
* use llvm objcopy to rename syms * use handlebars * it works! * remove linker code * better docs internally about dev.dioxus.main * use bundle identifier * double check bundle identifier is proper
This commit is contained in:
1 parent
1370bce182
commit
8a2922c663
13 files changed
+173
-79
No files matched your search
@@ -1,3 +0,0 @@
|
||||
package com.example.androidfinal
|
||||
|
||||
class MainActivity : WryActivity()
|
||||
@@ -0,0 +1,8 @@
|
||||
package dev.dioxus.main;
|
||||
|
||||
// need to re-export buildconfig down from the parent
|
||||
import {{application_id}}.BuildConfig;
|
||||
typealias BuildConfig = BuildConfig;
|
||||
|
||||
|
||||
class MainActivity : WryActivity()
|
||||
+2
-2
@@ -4,10 +4,10 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace="com.example.androidfinal"
|
||||
namespace="{{ application_id }}"
|
||||
compileSdk = 33
|
||||
defaultConfig {
|
||||
applicationId = "com.example.androidfinal"
|
||||
applicationId = "{{ application_id }}"
|
||||
minSdk = 24
|
||||
targetSdk = 33
|
||||
versionCode = 1
|
||||
+2
-2
@@ -5,8 +5,8 @@
|
||||
<application android:hasCode="true" android:supportsRtl="true" android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name" android:theme="@style/AppTheme">
|
||||
<activity android:configChanges="orientation|keyboardHidden" android:exported="true"
|
||||
android:label="@string/app_name" android:name="com.example.androidfinal.MainActivity">
|
||||
<meta-data android:name="android.app.lib_name" android:value="androidfinal" />
|
||||
android:label="@string/app_name" android:name="dev.dioxus.main.MainActivity">
|
||||
<meta-data android:name="android.app.lib_name" android:value="dioxusmain" />
|
||||
<meta-data android:name="android.app.func_name" android:value="ANativeActivity_onCreate" />
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
@@ -1,3 +0,0 @@
|
||||
<resources>
|
||||
<string name="app_name">Androidfinal</string>
|
||||
</resources>
|
||||
@@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name">{{app_name}}</string>
|
||||
</resources>
|
||||
Reference in new issue
Block a user