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
4bd4f222
Commit
4bd4f222
authored
Jun 29, 2021
by
shiyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新建商品业务组建module
parent
ec813f69
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
150 additions
and
1 deletion
+150
-1
.gitignore
Components/commodity/.gitignore
+1
-0
build.gradle
Components/commodity/build.gradle
+75
-0
consumer-rules.pro
Components/commodity/consumer-rules.pro
+0
-0
proguard-rules.pro
Components/commodity/proguard-rules.pro
+21
-0
ExampleInstrumentedTest.kt
.../yidian/shenghuoquan/commodity/ExampleInstrumentedTest.kt
+24
-0
AndroidManifest.xml
Components/commodity/src/main/AndroidManifest.xml
+5
-0
AndroidManifest.xml
Components/commodity/src/main/manifest/AndroidManifest.xml
+5
-0
ExampleUnitTest.kt
...java/com/yidian/shenghuoquan/commodity/ExampleUnitTest.kt
+17
-0
settings.gradle
settings.gradle
+2
-1
No files found.
Components/commodity/.gitignore
0 → 100644
View file @
4bd4f222
/build
\ No newline at end of file
Components/commodity/build.gradle
0 → 100644
View file @
4bd4f222
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-android-extensions'
apply
plugin:
'kotlin-kapt'
android
{
compileSdkVersion
build_versions
.
compileSdkVersion
defaultConfig
{
if
(
rootProject
.
ext
.
android
.
isApplication
)
{
applicationId
"com.yidian.yac"
}
minSdkVersion
build_versions
.
minSdkVersion
targetSdkVersion
build_versions
.
targetSdkVersion
versionCode
rootProject
.
ext
.
android
.
versionCode
versionName
rootProject
.
ext
.
android
.
versionName
javaCompileOptions
{
annotationProcessorOptions
{
arguments
=
[
setAttributeClassName:
'YdNewsSetAttributeMethodProvider'
,
bindingDataClassName
:
'YdNewsBindingDataMethodProvider'
]
}
}
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'
}
}
}
androidExtensions
{
experimental
=
true
}
viewBinding
{
enabled
=
true
}
kapt
{
generateStubs
=
true
}
}
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
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/commodity/consumer-rules.pro
0 → 100644
View file @
4bd4f222
Components/commodity/proguard-rules.pro
0 → 100644
View file @
4bd4f222
# 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/commodity/src/androidTest/java/com/yidian/shenghuoquan/commodity/ExampleInstrumentedTest.kt
0 → 100644
View file @
4bd4f222
package
com.yidian.shenghuoquan.commodity
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.example.commodity.test"
,
appContext
.
packageName
)
}
}
Components/commodity/src/main/AndroidManifest.xml
0 → 100644
View file @
4bd4f222
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.yidian.shenghuoquan.commodity"
>
</manifest>
\ No newline at end of file
Components/commodity/src/main/manifest/AndroidManifest.xml
0 → 100644
View file @
4bd4f222
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.yidian.shenghuoquan.commodity"
>
</manifest>
\ No newline at end of file
Components/commodity/src/test/java/com/yidian/shenghuoquan/commodity/ExampleUnitTest.kt
0 → 100644
View file @
4bd4f222
package
com.yidian.shenghuoquan.commodity
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 @
4bd4f222
...
@@ -6,3 +6,4 @@ include ':idcard_quality'
...
@@ -6,3 +6,4 @@ include ':idcard_quality'
rootProject
.
name
=
"ShenghuoquanBusiness"
rootProject
.
name
=
"ShenghuoquanBusiness"
//setBinding(new Binding([gradle: this]))
//setBinding(new Binding([gradle: this]))
//evaluate(new File("../YDSubway_flutter/.android", 'include_flutter.groovy'))
//evaluate(new File("../YDSubway_flutter/.android", 'include_flutter.groovy'))
include
':Components:commodity'
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