Skip to content

Commit

Permalink
Merge pull request #1789 from fossasia/development
Browse files Browse the repository at this point in the history
chore: Release v1.4.0
  • Loading branch information
iamareebjamal authored Jul 5, 2019
2 parents 9c1cecb + 2840933 commit c5b8c30
Show file tree
Hide file tree
Showing 102 changed files with 3,742 additions and 1,494 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ UserInterfaceState.xcuserstate

/app/build
*apk
.project
local.properties
.tool-versions
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ cache:
- "${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
before_script:
- bash scripts/prep-key.sh
script:
- ./gradlew assemblePlayStoreRelease
- ./gradlew assembleFdroidRelease
- ./gradlew testPlayStoreReleaseUnitTestCoverage
after_success:
- bash <(curl -s https://codecov.io/bash)
- bash scripts/prep-key.sh
- bash scripts/update-apk.sh
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
![Open Event Organizer](docs/images/organizer_app_branding.png)


## Open Event Organizer App
## Open Event Organizer Android App

[![Build Status](https://img.shields.io/travis/fossasia/open-event-orga-app/development.svg)](https://travis-ci.org/fossasia/open-event-orga-app)
[![Codacy Grade](https://img.shields.io/codacy/grade/d6ae120356c94c0d94d6449ec540f520.svg)](https://www.codacy.com/app/mb/open-event-orga-app)
[![Codecov Coverage](https://img.shields.io/codecov/c/github/fossasia/open-event-orga-app/development.svg)](https://codecov.io/gh/fossasia/open-event-orga-app)
[![Build Status](https://img.shields.io/travis/fossasia/open-event-organizer-android/development.svg)](https://travis-ci.org/fossasia/open-event-organizer-android)
[![Codacy Grade](https://img.shields.io/codacy/grade/d6ae120356c94c0d94d6449ec540f520.svg)](https://www.codacy.com/app/mb/open-event-organizer-android)
[![Codecov Coverage](https://img.shields.io/codecov/c/github/fossasia/open-event-organizer-android/development.svg)](https://codecov.io/gh/fossasia/open-event-organizer-android)
[![Appetize Preview](https://img.shields.io/badge/Preview-appetize.io-673AB7.svg)](https://appetize.io/app/w8v8z7pc9aewargb2uuyf108f0)
[![Gitter](https://img.shields.io/badge/chat-on%20gitter-ff006f.svg)](https://gitter.im/fossasia/open-event-orga-app)
[![Twitter Follow](https://img.shields.io/twitter/follow/eventyay.svg?style=social&label=Follow&maxAge=2592000?style=flat-square)](https://twitter.com/eventyay)
Expand Down
60 changes: 42 additions & 18 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ apply plugin: 'com.noveogroup.android.check'
apply from: './jacoco.gradle'
apply plugin: 'com.google.gms.oss.licenses.plugin'
apply plugin: "net.ltgt.errorprone"
apply plugin: "com.github.b3er.local.properties"

def app_name = System.getenv('app_name') ?: "Eventyay Organizer"
def GOOGLE_PLACES_API_KEY = System.getenv('GOOGLE_PLACES_API_KEY') ?: "YOUR_API_KEY"

def LOCAL_KEY_PRESENT = project.hasProperty('SIGNING_KEY_FILE') && rootProject.file(SIGNING_KEY_FILE).exists()

android {
lintOptions {
warning 'InvalidPackage'
Expand All @@ -24,32 +27,53 @@ android {
applicationId "com.eventyay.organizer"
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
versionCode 13
versionName "1.3.0"
versionCode 14
versionName "1.4.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
manifestPlaceholders = [
appName: app_name,
GOOGLE_PLACES_API_KEY: GOOGLE_PLACES_API_KEY
]
}

signingConfigs {
if (TRAVIS_BUILD) {
release {
storeFile KEYSTORE_FILE
storePassword System.getenv("STORE_PASS")
keyAlias System.getenv("ALIAS")
keyPassword System.getenv("KEY_PASS")
}
} else if (LOCAL_KEY_PRESENT) {
release {
storeFile rootProject.file(SIGNING_KEY_FILE)
storePassword STORE_PASS
keyAlias ALIAS
keyPassword KEY_PASS
}
}
}

buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

buildConfigField "String", "DEFAULT_BASE_URL", '"https://api.eventyay.com/v1/"'
buildConfigField 'Boolean', 'HIDE_DRAWER_ITEMS', 'true'
resValue "string", "default_base_url", '"https://api.eventyay.com/v1/"'

if (LOCAL_KEY_PRESENT || TRAVIS_BUILD)
signingConfig signingConfigs.release
}
debug {
testCoverageEnabled = true
buildConfigField "String", "DEFAULT_BASE_URL", '"https://open-event-api-dev.herokuapp.com/v1/"'
buildConfigField 'Boolean', 'HIDE_DRAWER_ITEMS', 'false'
resValue "string", "default_base_url", '"https://open-event-api-dev.herokuapp.com/v1/"'
}
}

dataBinding {
enabled true
}
Expand Down Expand Up @@ -117,18 +141,18 @@ dependencies {

// Support Lib
implementation 'androidx.multidex:multidex:2.0.1'
implementation "androidx.appcompat:appcompat:1.1.0-beta01"
implementation "androidx.appcompat:appcompat:1.1.0-rc01"
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.recyclerview:recyclerview:1.1.0-alpha06"
implementation "androidx.recyclerview:recyclerview:1.1.0-beta01"
implementation "com.google.android.material:material:1.1.0-alpha07"
implementation "androidx.browser:browser:1.0.0"
implementation "androidx.palette:palette:1.0.0"
implementation "com.takisoft.fix:preference-v7:${versions.support_lib}.0"
//implementation "androidx.media:media:1.1.0-alpha04" // GradleIncompatible Workaround
//implementation "androidx.legacy:legacy-support-v4:1.0.0" // GradleIncompatible Workaround
annotationProcessor 'androidx.annotation:annotation:1.1.0' // Required for Glide
playStoreImplementation "com.google.android.gms:play-services-vision:${versions.play_services}"
playStoreImplementation "com.google.android.gms:play-services-places:${versions.play_services}"
playStoreImplementation "com.google.android.gms:play-services-vision:${versions.play_services_vision}"
playStoreImplementation "com.google.android.libraries.places:places:${versions.places}"
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

// Misc
Expand All @@ -140,10 +164,10 @@ dependencies {
compileOnly 'com.google.code.findbugs:findbugs-annotations:3.0.1'

// Lifecycle
implementation "androidx.lifecycle:lifecycle-runtime:2.2.0-alpha01"
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0-alpha01"
implementation "androidx.lifecycle:lifecycle-common-java8:2.2.0-alpha01"
annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.2.0-alpha01"
implementation "androidx.lifecycle:lifecycle-runtime:2.2.0-alpha02"
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0-alpha02"
implementation "androidx.lifecycle:lifecycle-common-java8:2.2.0-alpha02"
annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.2.0-alpha02"

//WorkManager
implementation "android.arch.work:work-runtime:${versions.work_manager}"
Expand All @@ -166,7 +190,7 @@ dependencies {
implementation "com.squareup.retrofit2:retrofit:${versions.retrofit}"
implementation "com.squareup.retrofit2:converter-jackson:${versions.retrofit}"
implementation "com.squareup.retrofit2:adapter-rxjava2:${versions.retrofit}"
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.2'
implementation 'com.squareup.okhttp3:logging-interceptor:4.0.0'
implementation 'com.github.jasminb:jsonapi-converter:0.9'

// RxJava
Expand All @@ -175,10 +199,7 @@ dependencies {
implementation 'com.f2prateek.rx.preferences2:rx-preferences:2.0.0'

// Fast Adapter
implementation('com.mikepenz:fastadapter:3.0.4@aar') {
transitive = true
}
implementation 'com.mikepenz:fastadapter-commons:3.3.1@aar'
implementation "com.mikepenz:fastadapter:4.0.1"
implementation 'com.timehop.stickyheadersrecyclerview:library:0.4.3'
implementation 'me.xdrop:fuzzywuzzy:1.1.9'

Expand Down Expand Up @@ -231,11 +252,14 @@ dependencies {
//open-source licenses
playStoreImplementation "com.google.android.gms:play-services-oss-licenses:${versions.play_services}"

// QR Code Scanner
fdroidImplementation 'com.github.blikoon:QRCodeScanner:0.1.2'

//Testing
androidTestImplementation('androidx.test.espresso:espresso-core:3.2.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testImplementation("androidx.arch.core:core-testing:2.1.0-beta01", {
testImplementation("androidx.arch.core:core-testing:2.1.0-rc01", {
exclude group: 'com.android.support', module: 'support-compat'
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.android.support', module: 'support-core-utils'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
package com.eventyay.organizer.common.di.module.android;

import com.eventyay.organizer.core.attendee.qrscan.ScanQRActivity;

import dagger.Module;
import dagger.android.ContributesAndroidInjector;

@Module
public abstract class FlavorModule {

@ContributesAndroidInjector(modules = BarcodeFragmentBuildersModule.class)
abstract ScanQRActivity contributeScanQRActivity();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.eventyay.organizer.core.attendee;

import androidx.annotation.NonNull;

import com.eventyay.organizer.data.attendee.Attendee;

public interface ScanQRView {

boolean hasCameraPermission();

void requestCameraPermission();

void showPermissionError(String error);

void onScannedAttendee(Attendee attendee);

void showBarcodePanel(boolean show);

void showMessage(@NonNull int stringRes);

void setTint(boolean matched);

void showProgress(boolean show);

void startScan();
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
package com.eventyay.organizer.core.attendee;

import android.content.Context;
import android.widget.Toast;
import android.content.Intent;

import com.eventyay.organizer.R;
import com.eventyay.organizer.core.main.MainActivity;

public class ScanningDecider {

public void openScanQRActivity(Context context, long eventId) {
Toast.makeText(context, R.string.scanning_disabled_message, Toast.LENGTH_SHORT).show();
Intent intent = new Intent(context, com.eventyay.organizer.core.attendee.qrscan.ScanQRActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(MainActivity.EVENT_KEY, eventId);
context.startActivity(intent);
}
}
Loading

0 comments on commit c5b8c30

Please sign in to comment.