This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from mhacks/feature/instant-app
Split up app into base and feature modules.
- Loading branch information
Showing
210 changed files
with
617 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
apply plugin: "kotlin-android" | ||
|
||
android { | ||
compileSdkVersion 27 | ||
|
||
|
||
defaultConfig { | ||
applicationId 'org.mhacks.app' | ||
minSdkVersion 21 | ||
targetSdkVersion 27 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
} | ||
|
||
dependencies { | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" | ||
|
||
implementation project(':base') | ||
implementation project(':ui') | ||
// implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation "com.android.support:support-v4:$google_play_version" | ||
// | ||
// implementation 'com.android.support:appcompat-v7:28.0.0-rc02' | ||
// testImplementation 'junit:junit:4.12' | ||
// androidTestImplementation 'com.android.support.test:runner:1.0.2' | ||
// androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
26 changes: 26 additions & 0 deletions
26
apk/src/androidTest/java/la/unum/appapk/ExampleInstrumentedTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package la.unum.appapk; | ||
|
||
import android.content.Context; | ||
import android.support.test.InstrumentationRegistry; | ||
import android.support.test.runner.AndroidJUnit4; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
*/ | ||
@RunWith(AndroidJUnit4.class) | ||
public class ExampleInstrumentedTest { | ||
@Test | ||
public void useAppContext() { | ||
// Context of the app under test. | ||
Context appContext = InstrumentationRegistry.getTargetContext(); | ||
|
||
assertEquals("la.unum.appapk", appContext.getPackageName()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<manifest package="org.mhacks.app" | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<application android:label="@string/app_name"> | ||
|
||
<activity android:name="com.mhacks.app.ui.main.view.MainActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
|
||
<data | ||
android:scheme="http" | ||
android:host="mhacks.org" | ||
android:pathPattern="/schedule" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
|
||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
|
||
<data | ||
android:scheme="https" | ||
android:host="mhacks.org" | ||
android:pathPattern="/schedule" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
</application> | ||
|
||
</manifest> |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ object Constants { | |
|
||
const val RELEASE_URL = "https://mhacks.org/v1/" | ||
|
||
const val INSTANT_APP_PATH = "/schedule" | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<style name="MHacksEditText" parent="@android:style/Widget.EditText"> | ||
<item name="android:textColor">@color/white</item> | ||
<item name="android:layout_height">45dip</item> | ||
</style> | ||
|
||
</resources> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apply plugin: 'com.android.instantapp' | ||
|
||
android { | ||
compileSdkVersion 27 | ||
buildToolsVersion "27.0.3" | ||
|
||
} | ||
|
||
dependencies { | ||
implementation project(':base') | ||
implementation project(':ui') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include ':app' | ||
include ':base', ':apk', ':instant', ':ui' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
apply plugin: 'com.android.feature' | ||
|
||
apply plugin: "kotlin-kapt" | ||
apply plugin: "kotlin-android" | ||
apply plugin: "kotlin-android-extensions" | ||
|
||
android { | ||
compileSdkVersion 27 | ||
|
||
defaultConfig { | ||
minSdkVersion 21 | ||
targetSdkVersion 27 | ||
versionCode 3 | ||
versionName "1.0" | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" | ||
|
||
implementation project(':base') | ||
|
||
testImplementation 'junit:junit:4.12' | ||
|
||
implementation "com.google.dagger:dagger:$dagger_version" | ||
implementation "com.google.dagger:dagger-android-support:$dagger_version" | ||
kapt "com.google.dagger:dagger-compiler:$dagger_version" | ||
kapt "com.google.dagger:dagger-android-processor:$dagger_version" | ||
// androidTestImplementation 'com.android.support.test:runner:1.0.2' | ||
// androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | ||
|
||
implementation 'com.google.android.gms:play-services-gcm:11.8.0' | ||
implementation 'com.google.android.gms:play-services-maps:11.8.0' | ||
implementation 'com.google.android.gms:play-services-vision:11.8.0' | ||
implementation 'com.google.firebase:firebase-messaging:11.8.0' | ||
|
||
// Support libraries | ||
implementation "com.android.support:appcompat-v7:$google_play_version" | ||
implementation "com.android.support:support-v4:$google_play_version" | ||
implementation "com.android.support:cardview-v7:$google_play_version" | ||
implementation "com.android.support:recyclerview-v7:$google_play_version" | ||
implementation "com.android.support:design:$google_play_version" | ||
|
||
// View | ||
implementation 'com.android.support.constraint:constraint-layout:1.0.2' | ||
implementation 'com.github.kenglxn.QRGen:android:2.2.0' | ||
implementation 'com.github.vipulasri:timelineview:1.0.5' | ||
implementation 'me.dm7.barcodescanner:zxing:1.9.8' | ||
|
||
// Networking | ||
implementation 'com.squareup.retrofit2:retrofit:2.3.0' | ||
implementation 'com.squareup.retrofit2:converter-moshi:2.3.0' | ||
implementation 'com.squareup.okhttp3:okhttp:3.9.1' | ||
|
||
// Persistence | ||
implementation "android.arch.persistence.room:runtime:$room_version" | ||
implementation "android.arch.persistence.room:rxjava2:$room_version" | ||
|
||
// RxJava | ||
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1' | ||
implementation 'io.reactivex.rxjava2:rxjava:2.1.8' | ||
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0' | ||
|
||
// Debugging | ||
implementation 'com.facebook.stetho:stetho-okhttp3:1.5.0' | ||
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1' | ||
implementation 'com.jakewharton.timber:timber:4.6.0' | ||
|
||
// Dagger related libraries | ||
implementation "com.google.dagger:dagger:$dagger_version" | ||
implementation "com.google.dagger:dagger-android-support:$dagger_version" | ||
kapt "com.google.dagger:dagger-compiler:$dagger_version" | ||
kapt "com.google.dagger:dagger-android-processor:$dagger_version" | ||
|
||
// Other | ||
implementation 'com.jakewharton.threetenabp:threetenabp:1.0.5' | ||
|
||
implementation("com.github.hotchemi:permissionsdispatcher:3.0.1") { | ||
exclude module: "support-v13" | ||
} | ||
kapt "android.arch.persistence.room:compiler:$room_version" | ||
kapt "com.github.hotchemi:permissionsdispatcher-processor:3.0.1" | ||
} |
Oops, something went wrong.