Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 Android SDK 编译 Android 目标 #2635

Merged
merged 11 commits into from
May 2, 2023
Merged

使用 Android SDK 编译 Android 目标 #2635

merged 11 commits into from
May 2, 2023

Conversation

Him188
Copy link
Member

@Him188 Him188 commented Apr 17, 2023


但是我的 IDE 坏了, 我清除了任何 cache 都不能 import mirai (截图是 dev 分支)
image

@Him188
Copy link
Member Author

Him188 commented Apr 17, 2023

修了一小时, 终于通过删掉 .idea/gradle.xml -> 不要 import, 直接重启 IDE -> import project 解决了问题 😕

@Him188
Copy link
Member Author

Him188 commented Apr 29, 2023

好像得重写 relocation
目前的只能说是能跑

@Him188 Him188 force-pushed the him188/android-target branch 3 times, most recently from 166b2d9 to be21ca3 Compare May 1, 2023 10:35
@Him188
Copy link
Member Author

Him188 commented May 1, 2023

卧槽, All checks have passed

@Him188 Him188 marked this pull request as ready for review May 1, 2023 20:26
@Him188
Copy link
Member Author

Him188 commented May 1, 2023

Android project:

image
image

  • Kotlin 未 resolve 到 Android

@Him188
Copy link
Member Author

Him188 commented May 1, 2023

image

@Him188
Copy link
Member Author

Him188 commented May 1, 2023

92 changes 我觉得没人想 review

Him188 added 11 commits May 1, 2023 23:26
- try to fix sdk dir when android is desired
- Do not printAndroidNotInstalled multiple times
…ndroid, and improve build performance:

- Generate relocated JARs with classifier `relocated`, instead of replacing the output of `:jar` task.

- Create `JvmRelocated` publications to publish relocated artifacts.

- Patch Kotlin Metadata and Maven Pom for the added publication.

- Updated deps test to be more strict
@Him188 Him188 merged commit 64cfab6 into dev May 2, 2023
@Him188 Him188 deleted the him188/android-target branch May 2, 2023 15:17
Comment on lines +1 to +13
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2019-2023 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->

<manifest package="net.mamoe.mirai" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这东西真的不会在别的项目引入的时候造成资源解析爆炸吗

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是必须要有的,不然不给编译,虽然我也不是很懂安卓

@Him188 Him188 added this to the 2.15.0-RC milestone Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants