Skip to content

Commit 50a58c2

Browse files
wintmainwosys
authored andcommitted
[wNet][feat]Add lib support
1 parent 2d88eb8 commit 50a58c2

File tree

76 files changed

+7205
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+7205
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright 2023-2025 wintmain
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
plugins {
18+
id("com.android.library")
19+
id("org.jetbrains.kotlin.android")
20+
}
21+
22+
android {
23+
namespace = "lib.wintmain.libwNet"
24+
compileSdk = 35
25+
26+
defaultConfig {
27+
minSdk = 26
28+
}
29+
30+
compileOptions {
31+
sourceCompatibility = JavaVersion.VERSION_17
32+
targetCompatibility = JavaVersion.VERSION_17
33+
}
34+
35+
kotlinOptions {
36+
jvmTarget = "17"
37+
freeCompilerArgs = listOf("-Xinline-classes", "-Xallow-result-return-type")
38+
}
39+
}
40+
41+
dependencies {
42+
implementation(libs.androidx.appcompat)
43+
implementation(libs.androidx.startup)
44+
implementation(libs.androidx.lifecycle.runtime.ktx)
45+
implementation(libs.androidx.documentfile)
46+
47+
compileOnly(libs.okhttp)
48+
compileOnly("com.github.liangjingkanji:BRV:1.5.2")
49+
compileOnly(libs.kotlinx.coroutines.core)
50+
compileOnly(libs.kotlinx.coroutines.android)
51+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="utf-8"?><!--
2+
~ Copyright 2023-2025 wintmain
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ https://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18+
xmlns:tools="http://schemas.android.com/tools"
19+
package="lib.wintmain.libwNet">
20+
21+
<uses-permission android:name="android.permission.INTERNET" />
22+
23+
<application android:networkSecurityConfig="@xml/network_security_config"
24+
tools:targetApi="n">
25+
<provider
26+
android:name="androidx.startup.InitializationProvider"
27+
android:authorities="${applicationId}.androidx-startup"
28+
android:exported="false"
29+
tools:node="merge">
30+
<meta-data
31+
android:name="lib.wintmain.libwNet.internal.NetInitializer"
32+
android:value="androidx.startup" />
33+
</provider>
34+
</application>
35+
36+
</manifest>

0 commit comments

Comments
 (0)