Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
Meta cleanup, integration, automization (#3)
Browse files Browse the repository at this point in the history
* Gradle update

* Travis config

* Bad checkin

* Don't try to sign with nothing

* Travis is hard...

* More meta cleanup and organization of automation.
  • Loading branch information
d4rken authored Aug 27, 2018
1 parent e2a46bc commit 2d4f3b9
Show file tree
Hide file tree
Showing 16 changed files with 503 additions and 21 deletions.
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: android
jdk: oraclejdk8

notifications:
email: false

android:
components:
- tools
- build-tools-27.0.3
- android-28
- extra-android-support
- extra-android-m2repository
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

before_install:
- chmod +x gradlew
- yes | sdkmanager "platforms;android-28"

script: ./gradlew clean assemble test
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "fastlane"
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<img src="https://user-images.githubusercontent.com/1439229/44613748-affbdb00-a818-11e8-8a01-213e77638d14.png" width="400">
<img src="https://user-images.githubusercontent.com/1439229/44613748-affbdb00-a818-11e8-8a01-213e77638d14.png" width="300">

# Wakelock - Power Manager
[![Build Status](https://travis-ci.org/d4rken/wakelock-revamp.svg?branch=dev)](https://travis-ci.org/d4rken/wakelock-revamp)

Wake Lock gives you control over the Android Power- and WifiManager.
For example, you can force the PowerManager to keep the screen on or have the CPU still running in standby mode or make sure the Wifi connection keeps running at full performance.

## Contributions
* Are you multilingual? [Translate this app](https://crowdin.com/project/wakelock) to make it more accessible.
* If you can code, maybe submit a PR fixing an [open issue](https://github.com/d4rken/wakelock-revamp/issues).

## Download
[Google Play](https://play.google.com/store/apps/details?id=eu.thedarken.wldonate)

Expand Down
5 changes: 1 addition & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ bugsnag {
android {
def packageName = "eu.thedarken.wldonate"

signingConfigs {
release {}
}
def signingPropFile = new File(System.properties['user.home'], ".appconfig/${packageName}/signing.properties")
if (signingPropFile.canRead()) {
Properties signingProps = new Properties()
Expand Down Expand Up @@ -61,7 +58,7 @@ android {

}
release {
signingConfig signingConfigs.release
if (signingConfigs.hasProperty('release')) signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
manifestPlaceholders = [apikey_bugsnag: bugsnagProps.getProperty("bugsnag.apikey", "")]
Expand Down
10 changes: 4 additions & 6 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
<resources>
<string name="app_name">WakeLock v3</string>
<string name="label_settings">Settings</string>
<string name="label_help">Help</string>
<string name="label_welcome">Welcome</string>
<string name="action_start">Start</string>
<string name="label_wakelock_full">Screen and Keyboard</string>
<string name="description_wakelock_full">Keeps the display and keyboard at full brightness. If you press the power button, the lock will be implicitly released by the system.</string>
<string name="description_wakelock_full">Keep the display and keyboard at full brightness. If you press the power button, the lock will be implicitly released by the system.</string>
<string name="label_wakelock_partial">Processor</string>
<string name="description_wakelock_partial">Keeps the CPU from going into a standby/low-power mode, even if the power button is pressed or the display times out. If your device has trouble waking up, this is the lock you want.</string>
<string name="description_wakelock_partial">Keep the CPU from going into a standby/low-power mode, even if the power button is pressed or the display times out. If your device has trouble waking up, this is the lock you want.</string>
<string name="label_wakelock_screen_dim">Screen dimmed</string>
<string name="description_wakelock_screen_dim">Keeps the screen on, but allow it to dim. If you press the power button, the lock will be implicitly released by the system.</string>
<string name="description_wakelock_screen_dim">Keep the screen on, but allow it to dim. If you press the power button, the lock will be implicitly released by the system.</string>
<string name="label_wakelock_screen_bright">Screen bright</string>
<string name="description_wakelock_screen_bright">Keeps the screen at full brightness. If you press the power button, the lock will be implicitly released by the system.</string>
<string name="description_wakelock_screen_bright">Keep the screen at full brightness. If you press the power button, the lock will be implicitly released by the system.</string>
<string name="label_wifilock_full">Wi-Fi normal</string>
<string name="description_wifilock_full">Wi-Fi will stay active and behave normally, performance and loss will depend on other factors, e.g. whether the screen is off.</string>
<string name="label_wifilock_full_perf">Wi-Fi high performance</string>
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:3.1.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
classpath 'com.bugsnag:bugsnag-android-gradle-plugin:3.2.5'
}
Expand Down
4 changes: 4 additions & 0 deletions crowdin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
export CROWDIN_API_KEY=`cat ~/.appconfig/eu.thedarken.wldonate/crowdin.key`
alias crowdin-cli='java -jar /usr/local/bin/crowdin-cli.jar'
crowdin-cli "$@"
183 changes: 183 additions & 0 deletions crowdin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
"api_key_env": "CROWDIN_API_KEY"
"project_identifier" : "wakelock"
"preserve_hierarchy": true

"files" : [
{
"source" : "/app/src/main/res/values/strings.xml",
"dest" : "/strings.xml",
"translation" : "/app/src/main/res/values-%android_code%/%original_file_name%",
# "update_option" : "update_without_changes",
"languages_mapping" : &stringmapping {
"android_code" : {
"ar" : "ar",
"am" : "am",
"hy-AM" : "hy-rAM",
"az" : "az",
"be" : "be",
"bn" : "bn-rBD",
"bg" : "bg",
"ca" : "ca",
"cs" : "cs",
"da" : "da",
"de" : "de",
"el" : "el",
"es-ES" : "es",
"es-AR" : "es-rAR",
"es-MX" : "es-rMX",
"es-VE" : "es-rVE",
"et" : "et-rEE",
"eu" : "eu-rES",
"fa" : "fa",
"fil" : "fil",
"fi" : "fi",
"fr" : "fr",
"gl" : "gl-rES",
"hr" : "hr",
"hu" : "hu",
"hy-AM" : "hy-rAM",
"is" : "is",
"id" : "in",
"it" : "it",
"he" : "iw",
"ja" : "ja",
"ka" : "ka-rGE",
"km" : "km-rKH",
"kn" : "kn-rIN",
"ko" : "ko",
"ky" : "ky-rKG",
"lt" : "lt",
"lv" : "lv",
"lo" : "lo-rLA",
"ms" : "ms",
"ml-IN" : "ml-rIN",
"mn" : "mn-rMN",
"mr" : "mr-rIN",
"my" : "my-rMM",
"ne-NP" : "ne-rNP",
"nl" : "nl",
"no" : "no",
"pl" : "pl",
"pt-PT" : "pt",
"pt-BR" : "pt-rBR",
"ro" : "ro",
"ru" : "ru",
"rm-CH" : "rm",
"si-LK" : "si-rLK",
"sk" : "sk",
"sl" : "sl",
"sr" : "sr",
"sv-SE" : "sv",
"sw" : "sw",
"th" : "th",
"ta" : "ta-rIN",
"te" : "te-rIN",
"tr" : "tr",
"uk" : "uk",
"ur-IN" : "ur-rIN",
"uz" : "uz",
"vi" : "vi",
"zh-CN" : "zh-rCN",
"zh-HK" : "zh-rHK",
"zh-TW" : "zh-rTW",
"zu" : "zu"
}
}
}, {
"source" : "/fastlane/metadata/android/en-US/full_description.txt",
"dest" : "/description.txt",
"translation" : "/fastlane/metadata/android/%locale%/full_description.txt",
# "update_option" : "update_without_changes",
"languages_mapping" : &playstoremapping {
"locale" : {
"af" : "af",
"ar" : "ar",
"am" : "am",
"hy-AM" : "hy-AM",
"az" : "az-AZ",
"be" : "be",
"bn" : "bn-BD",
"bg" : "bg",
"ca" : "ca",
"cs" : "cs-CZ",
"da" : "da-DK",
"de" : "de-DE",
"el" : "el-GR",
"es-ES" : "es-ES",
"es-AR" : "es-AR",
"es-MX" : "es-419",
"es-VE" : "es-VE",
"et" : "et",
"eu" : "eu-ES",
"fa" : "fa",
"fil" : "fil",
"fi" : "fi-FI",
"fr" : "fr-FR",
"fr-CA" : "fr-CA",
"gl" : "gl-ES",
"hr" : "hr",
"hu" : "hu-HU",
"hy-AM" : "hy-AM",
"is" : "is-IS",
"id" : "id",
"it" : "it-IT",
"he" : "iw-IL",
"hi" : "hi-IN",
"ja" : "ja-JP",
"ka" : "ka-GE",
"km" : "km-KH",
"kn" : "kn-IN",
"ko" : "ko-KR",
"ky" : "ky-KG",
"lt" : "lt",
"lv" : "lv",
"lo" : "lo-LA",
"mk" : "mk-MK",
"ms" : "ms",
"ml-IN" : "ml-IN",
"mn" : "mn-MN",
"mr" : "mr-IN",
"my" : "my-MM",
"ne-NP" : "ne-NP",
"nl" : "nl-NL",
"no" : "no-NO",
"pl" : "pl-PL",
"pt-PT" : "pt-PT",
"pt-BR" : "pt-BR",
"ro" : "ro",
"ru" : "ru-RU",
"rm-CH" : "rm",
"si-LK" : "si-LK",
"sk" : "sk",
"sl" : "sl",
"sr" : "sr",
"sv-SE" : "sv-SE",
"sw" : "sw",
"th" : "th",
"ta" : "ta-IN",
"te" : "te-IN",
"tr" : "tr-TR",
"uk" : "uk",
"ur-IN" : "ur-IN",
"uz" : "uz",
"vi" : "vi",
"zh-CN" : "zh-CN",
"zh-HK" : "zh-HK",
"zh-TW" : "zh-TW",
"zu" : "zu"
}
}
}, {
"source" : "/fastlane/metadata/android/en-US/title.txt",
"dest" : "/title.txt",
"translation" : "/fastlane/metadata/android/%locale%/title.txt",
# "update_option" : "update_without_changes",
"languages_mapping" : *playstoremapping
}, {
"source" : "/fastlane/metadata/android/en-US/short_description.txt",
"dest" : "/short_description.txt",
"translation" : "/fastlane/metadata/android/%locale%/short_description.txt",
# "update_option" : "update_without_changes",
"languages_mapping" : *playstoremapping
}
]
Loading

0 comments on commit 2d4f3b9

Please sign in to comment.