Skip to content

Instantly share code, notes, and snippets.

View xymelon's full-sized avatar

与子同説 xymelon

View GitHub Profile
@xymelon
xymelon / ConcurrencyHelpers.kt
Created January 12, 2022 02:13 — forked from objcode/ConcurrencyHelpers.kt
Helpers to control concurrency for one shot requests using Kotlin coroutines.
/* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
// This script is used to initialize the build in a module or plugin project.
// During this phase, the script applies the Maven plugin and configures the
// destination of the local repository.
// The local repository will contain the AAR and POM files.
// 基于flutter sdk 3.3.10 aar_init_script.gradle修改(位于packages/flutter_tools/gradle/目录下)
// 1、支持上传本地或远程maven仓库(包括自身和依赖的插件库)
// 2、支持flutter插件依赖库版本号(以插件依赖库中pubspec.yaml#version为准),并校验maven库中是否存在,避免重复上传maven仓库报错