faceapi-client-android
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.gitee.l0km</groupId>
<artifactId>faceapi-client-android</artifactId>
<version>4.3.0</version>
</dependency><?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.gitee.l0km</groupId>
<artifactId>faceapi</artifactId>
<version>4.3.0</version>
</parent>
<artifactId>faceapi-client-android</artifactId>
<name>faceapi thrift client for android</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<codegen.dir>${project.basedir}/src/client/java</codegen.dir>
<stub.dir>${project.basedir}/src/thrifty/java</stub.dir>
<automatic.module.name>faceapi.client.android</automatic.module.name>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>com.gitee.l0km</groupId>
<artifactId>xthrift-thrifty</artifactId>
<version>${xthrift.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>faceapi-base</artifactId>
<version>${project.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 配置client,thrift文件夹,用于保存codegen和swift-generator生成的代码 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>add-source</id>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${codegen.dir}</source>
<source>${project.basedir}/src/thrifty/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<!-- 生成FaceApi接口的基于Microsoft/thrifty的client实现代码 -->
<plugin>
<groupId>com.gitee.l0km</groupId>
<artifactId>codegen-thrift-maven-plugin</artifactId>
<version>${codegen.version}</version>
<executions>
<execution>
<id>faceapi</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<interfaceClass>net.gdface.sdk.FaceApi</interfaceClass>
<refClass>net.gdface.sdk.BaseFaceApiLocal</refClass>
<package>net.gdface.sdk.thrift</package>
<outputDir>${codegen.dir}</outputDir>
<thriftPackage>net.gdface.sdk.thrift.client</thriftPackage>
<taskType>CLIENT_THRIFTY</taskType>
</configuration>
</execution>
<execution>
<id>fse</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<interfaceClass>net.gdface.sdk.fse.FeatureSe</interfaceClass>
<refClass>net.gdface.sdk.fse.FeatureSeDefaultImpl</refClass>
<package>net.gdface.sdk.fse.thrift</package>
<outputDir>${codegen.dir}</outputDir>
<thriftPackage>net.gdface.sdk.fse.thrift.client</thriftPackage>
<taskType>CLIENT_THRIFTY</taskType>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>thrifty-stub</id>
<!-- thrifty-compiler 需要jdk8 -->
<activation>
<jdk>[1.8,)</jdk>
</activation>
<build>
<plugins>
<!-- 生成thrifty stub代码 -->
<plugin>
<groupId>com.gitee.l0km</groupId>
<artifactId>thrifty-compiler-maven-plugin</artifactId>
<version>${thrifty.compiler.maven.plugin.version}</version>
<executions>
<execution>
<id>faceapi</id>
<goals>
<goal>stub</goal>
</goals>
<configuration>
<outputDir>${stub.dir}</outputDir>
<thriftFiles>
<thriftFile>${project.basedir}/../faceapi-service/FaceApi.thrift</thriftFile>
</thriftFiles>
</configuration>
</execution>
<execution>
<id>fse</id>
<goals>
<goal>stub</goal>
</goals>
<configuration>
<outputDir>${stub.dir}</outputDir>
<thriftFiles>
<thriftFile>${project.basedir}/../faceapi-service/FeatureSe.thrift</thriftFile>
</thriftFiles>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>