mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-19 12:15:28 +00:00
moved xmake cfg to repo root to preempt merge losses
This commit is contained in:
@@ -1 +0,0 @@
|
||||
1.4.54
|
||||
@@ -1 +0,0 @@
|
||||
1.0.9
|
||||
@@ -1,2 +0,0 @@
|
||||
CODE_SIGN_IDENTITY = iPhone Distribution
|
||||
PROVISIONING_PROFILE_SPECIFIER = Q3U792Z354/SAP Sail InSight
|
||||
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>method</key>
|
||||
<string>app-store</string>
|
||||
<key>provisioningProfiles</key>
|
||||
<dict>
|
||||
<key>com.sap.sailing.ios.SAPTracker.release</key> <!--bundle identifier of project read note below (Make sure to include the .release appended at the end)!-->
|
||||
<string>SAP Sail InSight</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1,91 +0,0 @@
|
||||
import static groovy.io.FileType.FILES
|
||||
import java.io.File
|
||||
|
||||
SIGN_DOCKER_FILE_PY = ".xmake/codesign/sign_docker_files.py"
|
||||
MAVENCLIENT_VERSION = "1.1.1"
|
||||
CODESIGN_TOOL_DIR = "${importdir}"
|
||||
|
||||
def execute(String... cmd) {
|
||||
println "Executing command: ${cmd.join(' ')}"
|
||||
|
||||
def process = new ProcessBuilder(cmd).redirectErrorStream(true).start()
|
||||
process.inputStream.eachLine { println it }
|
||||
process.waitForOrKill(java.util.concurrent.TimeUnit.MINUTES.toMillis(1))
|
||||
return process.exitValue()
|
||||
}
|
||||
|
||||
//check if proper version of mavenclient imported
|
||||
def mavenclient = new File(CODESIGN_TOOL_DIR, "mavenclient-${MAVENCLIENT_VERSION}/bin/mavenclient")
|
||||
assert mavenclient.exists()
|
||||
println "mavenclient check passed"
|
||||
|
||||
def setup_android_tool(String toolname) {
|
||||
def tool = new File(CODESIGN_TOOL_DIR, "android-8.1.0/" + toolname )
|
||||
//check zipalign in the exploded build-tools dir
|
||||
tool.setExecutable(true)
|
||||
assert tool.canExecute()
|
||||
println toolname + " check passed"
|
||||
return tool
|
||||
}
|
||||
|
||||
//tools required in the exploded build-tools dir
|
||||
def zipalign = setup_android_tool("zipalign")
|
||||
// google play store checks the APK with this tool - below API level 18 only SHA1 digest algorithm allowed
|
||||
//
|
||||
// if you see similar message:
|
||||
// uses digest algorithm SHA-512 and signature algorithm RSA which is not supported on API Level(s) 15-17 for which this APK is being verified
|
||||
//
|
||||
// for further info please check "Support of Android 4.2 will be dropped for new apps" here:
|
||||
// https://wiki.wdf.sap.corp/wiki/display/NAAS/Mobile+Announcements#MobileAnnouncements-Android
|
||||
def apksigner = setup_android_tool("apksigner")
|
||||
|
||||
def repodir = new File(gendir, "src/java/com.sap.sailing.www/apps")
|
||||
|
||||
if (new File(SIGN_DOCKER_FILE_PY).exists()){
|
||||
// central signing available only during release builds
|
||||
println "Execute APK central signing and alignment ..."
|
||||
|
||||
//calling xmake signing script
|
||||
//paths are relative to gen/out in files2sign.json
|
||||
assert execute("python", SIGN_DOCKER_FILE_PY, "${gendir}", "${cfgdir}/files2sign.json", "${importdir}") == 0
|
||||
repodir.traverse(type : FILES, nameFilter: ~/.*unsigned*.*${apkExtension}/) { apkFile ->
|
||||
def apkUnsigned = apkFile.getAbsolutePath()
|
||||
def name = apkFile.getName()
|
||||
def index = name.indexOf("-")
|
||||
def apkToDeploy = "$gendir/${name.substring(0 , index)}-release-centralsigned.apk"
|
||||
|
||||
//align the already signed apks
|
||||
assert execute(zipalign.absolutePath, "-v", "4", apkUnsigned, apkToDeploy) == 0
|
||||
assert execute(apksigner.absolutePath, "verify", "--print-certs", apkToDeploy) == 0
|
||||
}
|
||||
} else {
|
||||
// snapshot and milestone builds are not eligible for central signing
|
||||
apkExtension = /\.apk$/
|
||||
repodir.traverse(type : FILES, nameFilter: ~/.*unsigned*.*${apkExtension}/) { apkFile ->
|
||||
def apkToDeploy = "$gendir/${apkFile.getName()}"
|
||||
def apkToSign = apkFile.getAbsolutePath()
|
||||
|
||||
println "Execute APK local signing ..."
|
||||
assert execute(apksigner.absolutePath, "sign", "--ks", "${CODESIGN_TOOL_DIR}/localSigningKeystore-1.0.0.jks", "--ks-pass", "pass:localSigningPassword", "-in", "${apkToSign}", "-out", "${apkToDeploy}" ) == 0
|
||||
|
||||
assert execute(apksigner.absolutePath, "verify", "--print-certs", apkToDeploy) == 0
|
||||
}
|
||||
}
|
||||
|
||||
artifacts builderVersion: "1.1", {
|
||||
def groupId = "com.sap.sailing.android"
|
||||
|
||||
def apkExtension = /\.apk$/
|
||||
repodir.traverse(type : FILES, nameFilter: ~/.*unsigned*.*${apkExtension}/) { apkFile ->
|
||||
def apkToDeploy = "$gendir/${apkFile.getName()}"
|
||||
def artifactId = apkFile.getName().replace("com.sap.sailing.", "")
|
||||
def startOfVersion = artifactId.indexOf("-")
|
||||
artifactId = artifactId.substring(0, startOfVersion)
|
||||
|
||||
group "$groupId", {
|
||||
artifact "$artifactId", {
|
||||
file "$apkToDeploy"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"ANDROID":[
|
||||
{
|
||||
"version": "1.4.54",
|
||||
"groupid": "com.sap.sailing.android",
|
||||
"file": "java/com.sap.sailing.www/apps/com.sap.sailing.racecommittee.app-unsigned.apk",
|
||||
"artifactid": "racecommitteeapp"
|
||||
},
|
||||
{
|
||||
"version": "1.4.54",
|
||||
"groupid": "com.sap.sailing.android",
|
||||
"file": "java/com.sap.sailing.www/apps/com.sap.sailing.tracking.app-unsigned.apk",
|
||||
"artifactid": "trackingapp"
|
||||
},
|
||||
{
|
||||
"version": "1.4.54",
|
||||
"groupid": "com.sap.sailing.android",
|
||||
"file": "java/com.sap.sailing.www/apps/com.sap.sailing.buoy.positioning.app-unsigned.apk",
|
||||
"artifactid": "buoypositioningapp"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
imports dslVersion:"1.3", {
|
||||
targetRootDir id: "default", {
|
||||
|
||||
// required dependencies
|
||||
artifactFile "com.oracle.download.java:jdk:tar.gz:linux-x64:1.8.0_66-sap-01"
|
||||
|
||||
artifactFile "com.google.download.android:tools:zip:linux:26.1.1"
|
||||
artifactFile "com.google.download.android:platform-tools:zip:linux:28.0.0"
|
||||
artifactFile "com.google.download.android:build-tools:zip:linux:28.0.3"
|
||||
artifactFile "com.google.download.android:platform:zip:28.6"
|
||||
|
||||
// optional dependencies for Android SDK - use when required (e.g. appcompat-v7)
|
||||
artifactFile "com.google.download.android:google-repository:zip:58"
|
||||
|
||||
// tools required to sign + zipalign APKs
|
||||
unzip {
|
||||
artifactFile "com.sap.prd.codesign.mavenclient:com.sap.prd.codesign.mavenclient.dist.cli:zip:dist:1.1.1"
|
||||
artifactFile "com.google.download.android:build-tools:zip:linux:27.0.3"
|
||||
}
|
||||
artifactFile "com.sap.ldi.signing:localSigningKeystore:jks:1.0.0"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
[xcodeproject]
|
||||
group-id=com.sap.sailing.mobile.ios
|
||||
project-name=SAPTracker
|
||||
scheme-name=SAPTracker
|
||||
project-type=app
|
||||
artifact-id=SAPTracker
|
||||
@@ -1,8 +0,0 @@
|
||||
[xmake]
|
||||
xmake-version=1.0.9
|
||||
[buildplugin]
|
||||
name=dockerrun
|
||||
aid=android_build
|
||||
gid=com-sap-mobile
|
||||
version=1.0.8
|
||||
mode=docker
|
||||
Reference in New Issue
Block a user