Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release 1.7.0 #651

Merged
merged 43 commits into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
8a260e4
chore: Baseline dev with master (#549)
iamareebjamal Dec 14, 2019
edb01c1
fix: Release aab path (#553)
iamareebjamal Dec 14, 2019
f8a1032
chore: fail script when deployment not successful (#557)
adityastic Dec 14, 2019
054de08
feat: app specific directory storage (#559)
refactor-droidyy Dec 18, 2019
a8f70eb
chore(deps): bump material from 1.1.0-beta01 to 1.2.0-alpha03 (#560)
dependabot-preview[bot] Dec 20, 2019
a30afb9
chore: improve storage utils and remove requestLegacyStorage (#562)
adityastic Dec 21, 2019
e39af0f
fix: support non latin languages (#563)
adityastic Dec 22, 2019
67f4862
Resolve delete cliparts issue (#568)
tronku Dec 23, 2019
bea4bee
Improve AboutUs (#572)
refactor-droidyy Dec 23, 2019
c89e3a0
fix: reverse listing of saved badges (#570)
refactor-droidyy Dec 26, 2019
ca55b67
fix: Resolve intermediate clipart delete issue
tronku Dec 26, 2019
d7e38e1
fix: uneven clipart display (#578)
refactor-droidyy Dec 26, 2019
70a6a90
chore: updated screenshots in Readme(#582)
refactor-droidyy Dec 27, 2019
513a16c
Resolve keyboard visibility issue (#587)
tronku Dec 29, 2019
965939f
fix: Improve drawer header (#567)
tanmayrauth Dec 30, 2019
4032041
feat: toggle bluetooth on transfer (#585)
refactor-droidyy Dec 30, 2019
5ef947e
chore: refactor StorageUtils (#593)
refactor-droidyy Dec 30, 2019
bad0839
feat: warning before deleting badges and cliparts (#596)
refactor-droidyy Dec 31, 2019
41c324a
fix: nav drawer selection issue (#597)
tronku Dec 31, 2019
f0b35d8
fix: Improve and Fix Saved Badge (#599)
refactor-droidyy Jan 1, 2020
0bcc5f0
chore(deps): bump junit from 4.12 to 4.13 (#600)
dependabot-preview[bot] Jan 1, 2020
f56a32d
fix: location issue with sending badges (#603)
adityastic Jan 2, 2020
0ae3922
fix: app launch issue (#601)
refactor-droidyy Jan 3, 2020
c74f5c4
feat: shift business logic to module (#595)
adityastic Jan 3, 2020
5c8e58f
fix: ios-framework build (#605)
adityastic Jan 3, 2020
0148c45
chore: shift ios project to this project (#606)
adityastic Jan 3, 2020
fa469c7
chore: fix upload script with android (#609)
adityastic Jan 3, 2020
89d496e
chore(deps): bump com.diffplug.gradle.spotless from 3.26.1 to 3.… (#613)
adityastic Jan 4, 2020
ebecc14
fix: ios-framework deploy (#612)
adityastic Jan 4, 2020
a2cf859
feat: about us selection in drawer (#615)
tanmayrauth Jan 4, 2020
f7dfdeb
chore: grammer in toast strings (#620)
tanmayrauth Jan 5, 2020
e69530e
feat: rate app added to drawer (#622)
tanmayrauth Jan 5, 2020
64350b0
chore(deps): bump kluent from 1.58 to 1.59 (#625)
dependabot-preview[bot] Jan 6, 2020
2c5124c
feat: [Android] allow users to use other badges (#627)
adityastic Jan 13, 2020
1d754f0
chore(deps): bump com.diffplug.gradle.spotless from 3.27.0 to 3.27.1 …
dependabot-preview[bot] Jan 14, 2020
9cb729e
feat: add animation while fragment transition (#632)
refactor-droidyy Jan 19, 2020
015b99e
chore(deps): bump material from 1.2.0-alpha03 to 1.2.0-alpha04 (#634)
dependabot-preview[bot] Jan 21, 2020
2fb64b8
chore(deps): bump kluent from 1.59 to 1.60 (#637)
dependabot-preview[bot] Jan 29, 2020
9c802d9
chore: [iOS] framework builds should be independent (#640)
adityastic Jan 31, 2020
9787383
Update README.md
hpdang Feb 2, 2020
48fa7b0
feat: icon when saved clipart or saved list is empty (#646)
adityastic Feb 9, 2020
aa4deb3
fix: app crashes (#647)
adityastic Feb 9, 2020
7de82a8
chore: updated version name to 1.7.0 (#650)
adityastic Feb 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
.gradle/
build/

#iOS framework
iOS/badgemagic/BadgeMagicModule.framework

# Local configuration
local.properties

# IntelliJ
*.iml
.idea/

.DS_Store
144 changes: 98 additions & 46 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,98 @@
language: android
dist: trusty
sudo: true
jdk:
- oraclejdk8
android:
components:
- tools
- android-29
- build-tools-29.0.2
- platform-tools
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
bundler : true
directories:
- "${TRAVIS_BUILD_DIR}/gradle/caches/"
- "${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"

install:
- bundle install

before_script:
- bash scripts/prep-key.sh
- bash scripts/check-screenshots.sh

script:
- ./gradlew spotlessCheck
- ./gradlew build --stacktrace

deploy:
- provider: script
skip_cleanup: true
script: bash scripts/upload-apk.sh
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(master|development)$
repo: fossasia/badge-magic-android
- provider: script
skip_cleanup: true
script: bash scripts/upload-gh-pages.sh
on:
all_branches: true
repo: fossasia/badge-magic-android
jobs:
include:
- name: Build Android
language: android
dist: trusty
sudo: true
jdk:
- oraclejdk8
android:
components:
- tools
- android-29
- build-tools-29.0.2
- platform-tools
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
bundler: true
directories:
- "${TRAVIS_BUILD_DIR}/gradle/caches/"
- "${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"

install:
- bundle install

before_script:
- bash scripts/prep-key.sh
- bash scripts/check-screenshots.sh

script:
- ./gradlew spotlessCheck
- ./gradlew build --stacktrace

deploy:
- provider: script
skip_cleanup: true
script: bash scripts/upload-apk.sh
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(master|development)$
repo: fossasia/badge-magic-android
- provider: script
skip_cleanup: true
script: bash scripts/upload-gh-pages.sh
on:
all_branches: true
repo: fossasia/badge-magic-android

- name: Build iOS
os: osx
osx_image: xcode11.3
language: objective-c

before_cache:
- brew cleanup

cache:
bundler: true
directories:
- $HOME/.konan
- $HOME/Library/Caches/Homebrew
- "${TRAVIS_BUILD_DIR}/gradle/caches/"
- "${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"

before_script:
# Java Installation
- java -version
- sudo rm -rf /Library/Java/*
- sudo rm -rf /Library/PreferencePanes/Java*
- sudo rm -rf /Library/Internet\ Plug-Ins/Java*
- brew tap AdoptOpenJDK/openjdk
- brew cask install adoptopenjdk8
- java -version
# -----------
# -----------
# Remove Project from gradle.settings
- echo "include ':BadgeMagicModule'" > settings.gradle
# -----------
- brew install swiftlint

script:
- cd iOS
- bundle exec fastlane run swiftlint strict:"true"
- bundle exec fastlane gym --skip_codesigning --skip_archive --skip_package_ipa
- cd ..

deploy:
- provider: script
skip_cleanup: true
script: bash scripts/upload-ios-framework.sh
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(master|development)$
repo: fossasia/badge-magic-android
68 changes: 68 additions & 0 deletions BadgeMagicModule/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget

plugins {
kotlin("multiplatform")
id("kotlinx-serialization")

}

val kt_serial = "0.14.0"
val klockVersion = "1.8.6"

kotlin {
val iOSTarget: (String, KotlinNativeTarget.() -> Unit) -> KotlinNativeTarget = ::iosArm64

iOSTarget("ios") {
binaries {
framework {
baseName = "BadgeMagicModule"
}
}
}

jvm("android")

sourceSets["commonMain"].dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-common")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$kt_serial")
implementation("com.soywiz.korlibs.klock:klock:$klockVersion")
}

sourceSets["androidMain"].dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:$kt_serial")
}

sourceSets["iosMain"].dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:$kt_serial")
}
}

val packForXcode by tasks.creating(Sync::class) {
val targetDir = File(buildDir, "xcode-frameworks")

/// selecting the right configuration for the iOS
/// framework depending on the environment
/// variables set by Xcode build
val mode = System.getenv("CONFIGURATION") ?: "DEBUG"
val framework = kotlin.targets
.getByName<KotlinNativeTarget>("ios")
.binaries.getFramework(mode)
inputs.property("mode", mode)
dependsOn(framework.linkTask)

from({ framework.outputDirectory })
into(targetDir)

/// generate a helpful ./gradlew wrapper with embedded Java path
doLast {
val gradlew = File(targetDir, "gradlew")
gradlew.writeText("#!/bin/bash\n"
+ "export 'JAVA_HOME=${System.getProperty("java.home")}'\n"
+ "cd '${rootProject.rootDir}'\n"
+ "./gradlew \$@\n")
gradlew.setExecutable(true)
}
}

tasks.getByName("build").dependsOn(packForXcode)
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package org.fossasia.badgemagic.data.fragments
package org.fossasia.badgemagic.data

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import org.fossasia.badgemagic.data.device.model.Mode
import org.fossasia.badgemagic.data.device.model.Speed
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

const val CONF_HEX_STRINGS = "hex_strings"
const val CONF_SPEED = "speed"
Expand All @@ -12,23 +10,23 @@ const val CONF_FLASH = "flash"
const val CONF_MARQUEE = "marquee"
const val CONF_INVERTED = "inverted"

@JsonClass(generateAdapter = true)
@Serializable
class BadgeConfig {
@Json(name = CONF_HEX_STRINGS)
@SerialName(CONF_HEX_STRINGS)
var hexStrings: List<String> = mutableListOf()

@Json(name = CONF_SPEED)
@SerialName(CONF_SPEED)
var speed: Speed = Speed.ONE

@Json(name = CONF_MODE)
@SerialName(CONF_MODE)
var mode: Mode = Mode.LEFT

@Json(name = CONF_FLASH)
@SerialName(CONF_FLASH)
var isFlash: Boolean = false

@Json(name = CONF_MARQUEE)
@SerialName(CONF_MARQUEE)
var isMarquee: Boolean = false

@Json(name = CONF_INVERTED)
@SerialName(CONF_INVERTED)
var isInverted: Boolean = false
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package org.fossasia.badgemagic.data.fragments
package org.fossasia.badgemagic.data

data class ConfigInfo(val badgeJSON: String, val fileName: String)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package org.fossasia.badgemagic.data

import kotlinx.serialization.Serializable

@Serializable
data class DataToSend(val messages: List<Message>)
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
package org.fossasia.badgemagic.data.device.model
package org.fossasia.badgemagic.data

import kotlinx.serialization.Serializable

@Serializable
data class Message(val hexStrings: List<String>, val flash: Boolean = false, val marquee: Boolean = false, val speed: Speed = Speed.ONE, val mode: Mode = Mode.LEFT)
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.fossasia.badgemagic.data

enum class Mode(val hexValue: Byte) {
LEFT(0x00),
RIGHT(0x01),
UP(0x02),
DOWN(0x03),
FIXED(0x04),
SNOWFLAKE(0x05),
PICTURE(0x06),
ANIMATION(0x07),
LASER(0x08);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.fossasia.badgemagic.data

enum class Speed(val hexValue: Byte) {
ONE(0x00),
TWO(0x10),
THREE(0x20),
FOUR(0x30),
FIVE(0x40),
SIX(0x50),
SEVEN(0x60),
EIGHT(0x70);
}
Loading