Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
appzxhy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
appzxhy
Commits
142354bf
Commit
142354bf
authored
Feb 28, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
b2d515d9
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
126 additions
and
1 deletion
+126
-1
.gitignore
Router/.gitignore
+1
-0
build.gradle.kts
Router/build.gradle.kts
+42
-0
consumer-rules.pro
Router/consumer-rules.pro
+0
-0
proguard-rules.pro
Router/proguard-rules.pro
+21
-0
ExampleInstrumentedTest.kt
...droidTest/java/com/koko/router/ExampleInstrumentedTest.kt
+24
-0
AndroidManifest.xml
Router/src/main/AndroidManifest.xml
+4
-0
ExampleUnitTest.kt
Router/src/test/java/com/koko/router/ExampleUnitTest.kt
+17
-0
build.gradle.kts
build.gradle.kts
+7
-0
libs.versions.toml
gradle/libs.versions.toml
+9
-0
settings.gradle.kts
settings.gradle.kts
+1
-1
No files found.
Router/.gitignore
0 → 100644
View file @
142354bf
/build
\ No newline at end of file
Router/build.gradle.kts
0 → 100644
View file @
142354bf
plugins
{
alias
(
libs
.
plugins
.
android
.
library
)
alias
(
libs
.
plugins
.
kotlin
.
android
)
}
android
{
namespace
=
"com.koko.router"
compileSdk
=
34
defaultConfig
{
minSdk
=
24
testInstrumentationRunner
=
"androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles
(
"consumer-rules.pro"
)
}
buildTypes
{
release
{
isMinifyEnabled
=
false
proguardFiles
(
getDefaultProguardFile
(
"proguard-android-optimize.txt"
),
"proguard-rules.pro"
)
}
}
compileOptions
{
sourceCompatibility
=
JavaVersion
.
VERSION_1_8
targetCompatibility
=
JavaVersion
.
VERSION_1_8
}
kotlinOptions
{
jvmTarget
=
"1.8"
}
}
dependencies
{
implementation
(
libs
.
androidx
.
core
.
ktx
)
implementation
(
libs
.
androidx
.
appcompat
)
implementation
(
libs
.
material
)
testImplementation
(
libs
.
junit
)
androidTestImplementation
(
libs
.
androidx
.
junit
)
androidTestImplementation
(
libs
.
androidx
.
espresso
.
core
)
api
(
libs
.
drouter
.
api
)
}
\ No newline at end of file
Router/consumer-rules.pro
0 → 100644
View file @
142354bf
Router/proguard-rules.pro
0 → 100644
View file @
142354bf
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
\ No newline at end of file
Router/src/androidTest/java/com/koko/router/ExampleInstrumentedTest.kt
0 → 100644
View file @
142354bf
package
com.koko.router
import
androidx.test.platform.app.InstrumentationRegistry
import
androidx.test.ext.junit.runners.AndroidJUnit4
import
org.junit.Test
import
org.junit.runner.RunWith
import
org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith
(
AndroidJUnit4
::
class
)
class
ExampleInstrumentedTest
{
@Test
fun
useAppContext
()
{
// Context of the app under test.
val
appContext
=
InstrumentationRegistry
.
getInstrumentation
().
targetContext
assertEquals
(
"com.koko.router.test"
,
appContext
.
packageName
)
}
}
\ No newline at end of file
Router/src/main/AndroidManifest.xml
0 → 100644
View file @
142354bf
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
</manifest>
\ No newline at end of file
Router/src/test/java/com/koko/router/ExampleUnitTest.kt
0 → 100644
View file @
142354bf
package
com.koko.router
import
org.junit.Test
import
org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class
ExampleUnitTest
{
@Test
fun
addition_isCorrect
()
{
assertEquals
(
4
,
2
+
2
)
}
}
\ No newline at end of file
build.gradle.kts
View file @
142354bf
...
...
@@ -5,4 +5,11 @@ plugins {
id
(
"com.google.gms.google-services"
)
version
"4.4.1"
apply
false
id
(
"com.google.firebase.crashlytics"
)
version
"3.0.2"
apply
false
alias
(
libs
.
plugins
.
android
.
library
)
apply
false
}
buildscript
{
dependencies
{
classpath
(
libs
.
drouter
.
plugin
)
}
}
\ No newline at end of file
gradle/libs.versions.toml
View file @
142354bf
...
...
@@ -20,6 +20,10 @@ facebook = "6.18.0.0"
mintegral
=
"16.8.61.0"
pangle
=
"6.3.0.4.0"
drouterApi
=
"2.4.6"
drouterPlugin
=
"1.4.0"
[libraries]
androidx-core-ktx
=
{
group
=
"androidx.core"
,
name
=
"core-ktx"
,
version.ref
=
"coreKtx"
}
...
...
@@ -49,8 +53,13 @@ applovin_facebook = { group = "com.applovin.mediation", name = "facebook-adapter
applovin_mintegral
=
{
group
=
"com.applovin.mediation"
,
name
=
"mintegral-adapter"
,
version.ref
=
"mintegral"
}
applovin_pangle
=
{
group
=
"com.applovin.mediation"
,
name
=
"bytedance-adapter"
,
version.ref
=
"pangle"
}
drouter-api
=
{
module
=
"io.github.didi:drouter-api"
,
version.ref
=
"drouterApi"
}
drouter-plugin
=
{
module
=
"io.github.didi:drouter-plugin"
,
version.ref
=
"drouterPlugin"
}
[plugins]
android-application
=
{
id
=
"com.android.application"
,
version.ref
=
"agp"
}
kotlin-android
=
{
id
=
"org.jetbrains.kotlin.android"
,
version.ref
=
"kotlin"
}
android-library
=
{
id
=
"com.android.library"
,
version.ref
=
"agp"
}
settings.gradle.kts
View file @
142354bf
...
...
@@ -28,4 +28,4 @@ dependencyResolutionManagement {
rootProject
.
name
=
"appzxhy"
include
(
":app"
)
\ No newline at end of file
include
(
":Router"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment