Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
ShenghuoquanBusiness
Commits
533a0249
Commit
533a0249
authored
Jul 27, 2021
by
chengkun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add bpush commpent
parent
7f33cc3c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
140 additions
and
0 deletions
+140
-0
.gitignore
Components/BPush/.gitignore
+1
-0
build.gradle
Components/BPush/build.gradle
+66
-0
consumer-rules.pro
Components/BPush/consumer-rules.pro
+0
-0
proguard-rules.pro
Components/BPush/proguard-rules.pro
+21
-0
ExampleInstrumentedTest.kt
.../com/yidian/shenghuoquan/bdemo/ExampleInstrumentedTest.kt
+24
-0
AndroidManifest.xml
Components/BPush/src/main/AndroidManifest.xml
+5
-0
AndroidManifest.xml
Components/BPush/src/main/manifest/AndroidManifest.xml
+5
-0
ExampleUnitTest.kt
...est/java/com/yidian/shenghuoquan/bdemo/ExampleUnitTest.kt
+17
-0
settings.gradle
settings.gradle
+1
-0
No files found.
Components/BPush/.gitignore
0 → 100644
View file @
533a0249
/build
\ No newline at end of file
Components/BPush/build.gradle
0 → 100644
View file @
533a0249
if
(
rootProject
.
ext
.
android
.
isApplication
)
{
apply
plugin:
'com.android.application'
apply
plugin:
'yac-engine'
}
else
{
apply
plugin:
'com.android.library'
}
apply
plugin:
'kotlin-android'
apply
plugin:
'kotlin-kapt'
apply
plugin:
'kotlin-parcelize'
android
{
compileSdkVersion
build_versions
.
compileSdkVersion
defaultConfig
{
if
(
rootProject
.
ext
.
android
.
isApplication
)
{
applicationId
"com.yidian.shenghuoquan.bpush"
}
minSdkVersion
build_versions
.
minSdkVersion
targetSdkVersion
build_versions
.
targetSdkVersion
versionCode
rootProject
.
ext
.
android
.
versionCode
versionName
rootProject
.
ext
.
android
.
versionName
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles
"consumer-rules.pro"
}
buildTypes
{
release
{
minifyEnabled
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'
}
sourceSets
{
main
{
if
(
rootProject
.
ext
.
android
.
isApplication
)
{
manifest
.
srcFile
'src/main/manifest/AndroidManifest.xml'
}
else
{
manifest
.
srcFile
'src/main/AndroidManifest.xml'
}
}
}
buildFeatures
{
dataBinding
true
}
kapt
{
generateStubs
=
true
}
}
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
,
'*.aar'
])
implementation
"org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
rootProject
.
ext
.
dependencies
.
other
.
each
{
implementation
project
(
it
)
}
implementation
rootProject
.
ext
.
dependencies
.
publicImplementation
testImplementation
rootProject
.
ext
.
dependencies
.
testImplementation
androidTestImplementation
rootProject
.
ext
.
dependencies
.
androidTestImplementation
}
\ No newline at end of file
Components/BPush/consumer-rules.pro
0 → 100644
View file @
533a0249
Components/BPush/proguard-rules.pro
0 → 100644
View file @
533a0249
# 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
Components/BPush/src/androidTest/java/com/yidian/shenghuoquan/bdemo/ExampleInstrumentedTest.kt
0 → 100644
View file @
533a0249
package
com.yidian.shenghuoquan.bdemo
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.yidian.shenghuoquan.bdemo.test"
,
appContext
.
packageName
)
}
}
Components/BPush/src/main/AndroidManifest.xml
0 → 100644
View file @
533a0249
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.yidian.shenghuoquan.bpush"
>
</manifest>
\ No newline at end of file
Components/BPush/src/main/manifest/AndroidManifest.xml
0 → 100644
View file @
533a0249
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.yidian.shenghuoquan.bpush"
>
</manifest>
Components/BPush/src/test/java/com/yidian/shenghuoquan/bdemo/ExampleUnitTest.kt
0 → 100644
View file @
533a0249
package
com.yidian.shenghuoquan.bdemo
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
)
}
}
settings.gradle
View file @
533a0249
...
@@ -11,3 +11,4 @@ include ':Components:BGeneralBusiness'
...
@@ -11,3 +11,4 @@ include ':Components:BGeneralBusiness'
include
':Components:BOrder'
include
':Components:BOrder'
include
':Components:BMediator'
include
':Components:BMediator'
include
':Components:BDemo'
include
':Components:BDemo'
include
':Components:BPush'
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