终于打包成功aar

This commit is contained in:
xsl
2025-10-21 18:56:09 +08:00
parent bdcf466b73
commit 25fd6b4a32
17 changed files with 585 additions and 24 deletions
+12 -17
View File
@@ -2,29 +2,24 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<!-- Declare features -->
<uses-feature android:name="android.hardware.camera" />
<!-- 声明摄像头硬件特性 -->
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<!-- Declare permissions -->
<!-- 声明摄像头权限 -->
<uses-permission android:name="android.permission.CAMERA" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Sample">
<application>
<!-- 声明 MainActivity -->
<!-- 作为库,exported 通常设为 false,除非明确需要外部应用启动 -->
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
android:exported="false"
tools:ignore="MissingClass"> <!-- 如果IDE报类找不到,可以添加这个 -->
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- 重要:移除 MAIN/LAUNCHER intent-filter -->
<!-- 让使用库的应用来决定哪个是主Activity -->
<meta-data
android:name="android.app.lib_name"