Commit 1ece9ede authored by Thomas Markiewicz's avatar Thomas Markiewicz

Added initial branding

parent a903bd6f
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>librem-mail-android</name>
<comment>Project librem-mail-android created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
......@@ -10,6 +10,18 @@ buildscript {
}
}
// global properties used in sub modules
ext {
versionMajor = System.getenv("MAJOR") as Integer ?: 0
versionMinor = System.getenv("MINOR") as Integer ?: 0
versionPatch = System.getenv("PATCH") as Integer ?: 0
versionBuild = System.getenv("CI_PIPELINE_IID") as Integer ?: 0
versionCodeProp = 100000 + versionBuild
versionNameProp = String.valueOf(versionMajor) + "." + String.valueOf(versionMinor) + "." + String.valueOf(versionPatch)
buildNumberProp = "${versionBuild}"
}
project.ext {
testCoverage = project.hasProperty('testCoverage')
optimizeForDevelopment = project.hasProperty('optimizeForDevelopment') && optimizeForDevelopment == 'true'
......
json_key_file("/Users/gitlabrunner/Nextcloud/LibertyApps/PlayStore/secrets/api-6019011998585182423-754965-83a427df00b1.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("sm.puri.librem.mail") # e.g. com.krausefx.app
default_platform(:android)
platform :android do
desc "Build and deploy a new version for PlayStore"
lane :playstore do
gradle(task: "clean")
gradle(
task: "assemble",
build_type: "Release",
flavor: "libremmail",
print_command: true
)
# Rename and copy the apk to root folder
file_path = lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
file_name = file_path.gsub(/\/.*\//,"")
target_filename = "mail_playstore_" + ENV["MAJOR"] + "." + ENV["MINOR"] + "." + ENV["PATCH"] + "-" + ENV["CI_COMMIT_REF_NAME"] + "+" + ENV["CI_PIPELINE_IID"] + ".apk"
target_path = "../" + target_filename
sh "echo Copying " + file_name + " to: " + target_path
sh "cp " + file_path + " " + target_path
upload_to_play_store(
track: "internal"
)
end
desc "Build and deploy a new version to F-Droid"
lane :fdroid do
gradle(
task: "assemble",
build_type: "Release",
flavor: "libremmailfdroid"
)
upload_to_play_store
end
after_all do |lane|
# This block is called only if the executed lane was successfull
end
error do |lane, exception|
if is_ci
# send a message to Riot room that includes exception.message
end
end
end
fastlane documentation
================
# Installation
Make sure you have the latest version of the Xcode command line tools installed:
```
xcode-select --install
```
Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew cask install fastlane`
# Available Actions
## Android
### android playstore
```
fastlane android playstore
```
Build and deploy a new version for PlayStore
### android fdroid
```
fastlane android fdroid
```
Build and deploy a new version to F-Droid
----
This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
Librem Mail
\ No newline at end of file
Librem Mail
\ No newline at end of file
Librem Mail
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="fastlane.lanes">
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.005035">
</testcase>
<testcase classname="fastlane.lanes" name="1: gradle" time="2.088739">
</testcase>
<testcase classname="fastlane.lanes" name="2: gradle" time="37.940434">
</testcase>
<testcase classname="fastlane.lanes" name="3: is_ci" time="0.001376">
</testcase>
</testsuite>
</testsuites>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>k9mail-library</name>
<comment>Project k9mail-library created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>k9mail</name>
<comment>Project k9mail created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
......@@ -65,29 +65,42 @@ android {
}
signingConfigs {
release
release {
storeFile file(project.hasProperty("RELEASE_STORE_FILE") ? RELEASE_STORE_FILE : "/dummy/path")
storePassword project.hasProperty("RELEASE_STORE_PASSWORD") ? RELEASE_STORE_PASSWORD : "dummy password"
keyAlias project.hasProperty("RELEASE_KEY_ALIAS") ? RELEASE_KEY_ALIAS : "dummy alias"
keyPassword project.hasProperty("RELEASE_KEY_PASSWORD") ? RELEASE_KEY_PASSWORD : "dummy password"
}
}
buildTypes {
release {
if (project.hasProperty('storeFile')) {
signingConfig signingConfigs.release
}
signingConfig signingConfigs.release
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "boolean", "DEVELOPER_MODE", "false"
}
debug {
applicationIdSuffix ".debug"
testCoverageEnabled rootProject.testCoverage
buildConfigField "boolean", "DEVELOPER_MODE", "true"
}
}
flavorDimensions "flavor_dimension_k9"
productFlavors {
app {
applicationId "com.fsck.k9"
}
libremmail {
applicationId "sm.puri.librem.mail"
versionCode rootProject.ext.versionCodeProp
versionName rootProject.ext.versionNameProp
}
}
// Do not abort build if lint finds errors
lintOptions {
abortOnError false
......
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto">
<application tools:replace="android:icon"
android:icon="@mipmap/ic_launcher">
</application>
</manifest>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="588.9855"
android:viewportHeight="588.9855">
<group android:translateX="159.02608"
android:translateY="159.02608">
<path
android:pathData="M29.518,46.807h207.68v31.837h-207.68z"
android:strokeWidth="0.11470462"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:fillAlpha="1"/>
<path
android:pathData="M29.413,184.045h207.891v33.313h-207.891z"
android:strokeWidth="0.11739276"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:fillAlpha="1"/>
<path
android:pathData="M29.307,47.018h35v152.65h-35z"
android:strokeWidth="0.11464504"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:fillAlpha="1"/>
<path
android:pathData="M202.304,46.807h35v153.072h-35z"
android:strokeWidth="0.11480328"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:fillAlpha="1"/>
<path
android:pathData="M34.64,81.807l14.877,-25.988l99.908,57.194l-14.877,25.988z"
android:strokeWidth="0.10184433"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:fillAlpha="1"/>
<path
android:pathData="M219.341,54.688l15.183,25.811l-99.227,58.368l-15.183,-25.811z"
android:strokeWidth="0.10184433"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:fillAlpha="1"/>
</group>
</vector>
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>plugins</name>
<comment>Project plugins created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment