Skip to content

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