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 14 #169

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

适配Android 14 #169

wants to merge 2 commits into from

Conversation

ppjuns
Copy link

@ppjuns ppjuns commented Dec 25, 2023

  1. 动态注册广播指定导出行为,谷歌官方提供了一个 registerReceiver(BroadcastReceiver receiver, IntentFilter filter, int flags) API,flags 参数传入 Context.RECEIVER_EXPORTED(支持导出) 。

    本次修改主要对com.jeremyliao.liveeventbus.core.LiveEventBusCore#registerReceiver方法进行修改,注册广播时,当安卓系统版本大于等于14,传入Context.RECEIVER_EXPORTED参数

@popkter
Copy link

popkter commented May 16, 2024

佬,打个包吧

@angcyo
Copy link

angcyo commented Sep 10, 2024

https://jitpack.io/#angcyo/LiveEventBus/1.8.1

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

	dependencies {
	        implementation 'com.github.angcyo:LiveEventBus:1.8.1'
	}

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.

3 participants