Skip to content

Commit

Permalink
Merge pull request #2 from FacePlusPlus/dev
Browse files Browse the repository at this point in the history
rename to MGLicenseManagerSDK, fix releaseAll task and strip jni libs
  • Loading branch information
moon5ckq authored Jan 17, 2017
2 parents e8bd71a + 32e7834 commit 0a0f878
Show file tree
Hide file tree
Showing 24 changed files with 23 additions and 22 deletions.
1 change: 0 additions & 1 deletion MGLicenseManageSDK/settings.gradle

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ local.properties
.gradle/
obj/
.externalNativeBuild
MGLicenseManageSDK/src/main/jni/libs/
MGLicenseManageSDK/src/main/jni/megviifacepp_*_model
MGLicenseManagerSDK/src/main/jni/libs/
MGLicenseManagerSDK/src/main/jni/megviifacepp_*_model
release/
build/
.idea
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android {
// libraries Gradle should build and package with your APK.
abiFilters 'arm64-v8a', 'armeabi-v7a'
}
project.archivesBaseName = "MGLicenceManageSDK"
project.archivesBaseName = "MGLicenseManagerSDK"
project.version = android.defaultConfig.versionName
}
buildTypes {
Expand Down Expand Up @@ -47,22 +47,24 @@ android {
}

task releaseAll() {
delete '../release'
copy {
from "build/intermediates/bundles/release/"
into "../release/for-eclipse/libs"
include "classes.jar"
rename ("classes.jar", "${archivesBaseName}-${version}.jar")
}
copy {
from "build/outputs/aar/${archivesBaseName}-${version}.aar"
//include "*"
into "../release"
}
copy {
from "build/intermediates/ndkBuild/release/obj/local/"
exclude "*/objs"
into "../release/for-eclipse/libs"
doLast {
delete '../release'
copy {
from "build/intermediates/bundles/release/"
into "../release/for-eclipse/libs"
include "classes.jar"
rename("classes.jar", "${archivesBaseName}-${version}.jar")
}
copy {
from "build/outputs/aar/${archivesBaseName}-${version}.aar"
//include "*"
into "../release"
}
copy {
from "build/intermediates/ndkBuild/release/obj/local/"
exclude "*/objs"
into "../release/for-eclipse/libs"
}
}
dependsOn build
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ LOCAL_MODULE := MegviiLicenseManager-jni-0.2.0
LOCAL_SRC_FILES := megvii_licensemanager_jni.cpp
LOCAL_C_INCLUDES := include
LOCAL_C_INCLUDES += thirdparty security
LOCAL_STATIC_LIBRARIES := cpufeatures
LOCAL_SHARED_LIBRARIES := OnlinAuth
LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog
LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog -Wl,-s
LOCAL_CPPFLAGS += -std=c++11 -ffunction-sections -fdata-sections -fvisibility=hidden \
-Wall -Wextra -fweb
LOCAL_LDFLAGS += -Wl,--gc-sections
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions MGLicenseManagerSDK/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ':MGLicenseManagerSDK'

0 comments on commit 0a0f878

Please sign in to comment.