Add python car module as subproject, add config to generate python protobuf code.

This commit is contained in:
Piv
2020-04-18 17:58:05 +09:30
parent 878f4bc8ab
commit 5b57bf592d
8 changed files with 13 additions and 4 deletions

3
.idea/gradle.xml generated
View File

@@ -1,10 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="delegatedBuild" value="false" />
<option name="testRunner" value="PLATFORM" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
@@ -12,6 +10,7 @@
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
<option value="$PROJECT_DIR$/car" />
<option value="$PROJECT_DIR$/protobuf" />
</set>
</option>

3
.idea/vcs.xml generated
View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$/car" vcs="Git" />
</component>
</project>

2
car

Submodule car updated: 8fd6ec9514...eee0e8dc44

View File

@@ -40,6 +40,14 @@ protobuf {
}
}
task packPythonGrpc(type: Zip) {
from protobuf.generatedFilesBaseDir + '/main/python'
}
artifacts {
python(packPythonGrpc)
}
dependencies {
implementation 'io.grpc:grpc-okhttp:1.28.1' // CURRENT_GRPC_VERSION
implementation 'io.grpc:grpc-protobuf-lite:1.28.1' // CURRENT_GRPC_VERSION

View File

@@ -1,3 +1,4 @@
include ':app'
include ':protobuf'
include 'car'
rootProject.name='CarController'