Skip to content
Snippets Groups Projects
Commit 93b8c503 authored by John's avatar John
Browse files

Attempt to open GitLab.com urls

parent f024f7f7
No related branches found
No related tags found
No related merge requests found
Showing
with 122 additions and 51 deletions
Loading
@@ -4,7 +4,7 @@ buildscript {
Loading
@@ -4,7 +4,7 @@ buildscript {
} }
   
dependencies { dependencies {
classpath 'io.fabric.tools:gradle:1.25.1' classpath 'io.fabric.tools:gradle:1.25.2'
} }
} }
   
Loading
@@ -92,9 +92,9 @@ android {
Loading
@@ -92,9 +92,9 @@ android {
} }
   
ext { ext {
supportLibVersion = '27.0.2' supportLibVersion = '27.1.1'
retrofitVersion = '2.3.0' retrofitVersion = '2.4.0'
okHttpVersion = '3.9.1' okHttpVersion = '3.10.0'
butterknifeVersion = '8.8.1' butterknifeVersion = '8.8.1'
parcelerVersion = '1.1.10' parcelerVersion = '1.1.10'
reptarVersion = '2.5.1' reptarVersion = '2.5.1'
Loading
@@ -103,7 +103,7 @@ ext {
Loading
@@ -103,7 +103,7 @@ ext {
leakCanaryVersion = '1.5.4' leakCanaryVersion = '1.5.4'
addendumVersion = '1.7.1' addendumVersion = '1.7.1'
moshiVersion = '1.5.0' moshiVersion = '1.5.0'
autodisposeVersion = '0.5.1' autodisposeVersion = '0.7.0'
} }
   
dependencies { dependencies {
Loading
@@ -138,13 +138,13 @@ dependencies {
Loading
@@ -138,13 +138,13 @@ dependencies {
implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0' implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
implementation "com.jakewharton:butterknife:$butterknifeVersion" implementation "com.jakewharton:butterknife:$butterknifeVersion"
kapt "com.jakewharton:butterknife-compiler:$butterknifeVersion" kapt "com.jakewharton:butterknife-compiler:$butterknifeVersion"
implementation 'com.jakewharton.timber:timber:4.6.0' implementation 'com.jakewharton.timber:timber:4.7.0'
implementation 'com.jakewharton.threetenabp:threetenabp:1.0.5' implementation 'com.jakewharton.threetenabp:threetenabp:1.0.5'
   
implementation 'org.greenrobot:eventbus:3.1.1' implementation 'org.greenrobot:eventbus:3.1.1'
   
implementation 'io.reactivex.rxjava2:rxjava:2.1.8' implementation 'io.reactivex.rxjava2:rxjava:2.1.12'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1' implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
   
implementation "com.uber.autodispose:autodispose-kotlin:$autodisposeVersion" implementation "com.uber.autodispose:autodispose-kotlin:$autodisposeVersion"
implementation "com.uber.autodispose:autodispose-android-kotlin:$autodisposeVersion" implementation "com.uber.autodispose:autodispose-android-kotlin:$autodisposeVersion"
Loading
@@ -167,13 +167,13 @@ dependencies {
Loading
@@ -167,13 +167,13 @@ dependencies {
} }
implementation 'com.github.Commit451:Easel:3.0.0' implementation 'com.github.Commit451:Easel:3.0.0'
implementation 'com.github.Commit451:Gimbal:2.0.2' implementation 'com.github.Commit451:Gimbal:2.0.2'
implementation 'com.github.Commit451:Teleprinter:2.0.0' implementation 'com.github.Commit451:Teleprinter:2.0.2'
implementation 'com.github.Commit451:Jounce:1.0.2' implementation 'com.github.Commit451:Jounce:1.0.2'
implementation 'com.github.Commit451:ForegroundViews:2.4.4' implementation 'com.github.Commit451:ForegroundViews:2.4.4'
implementation 'com.github.Commit451:MorphTransitions:2.0.0' implementation 'com.github.Commit451:MorphTransitions:2.0.0'
implementation "com.github.Commit451:Alakazam:2.0.0" implementation "com.github.Commit451:Alakazam:2.0.0"
implementation 'com.github.Commit451:Lift:2.0.1' implementation 'com.github.Commit451:Lift:2.0.1'
implementation 'com.github.Commit451:okyo:3.0.1' implementation 'com.github.Commit451:okyo:3.0.2'
implementation 'com.github.Commit451:OkioProGuardRules:1.11.0.0' implementation 'com.github.Commit451:OkioProGuardRules:1.11.0.0'
implementation 'com.github.Commit451:RetrofitProguardRules:2.2.0.0' implementation 'com.github.Commit451:RetrofitProguardRules:2.2.0.0'
implementation 'com.github.Commit451:LoganSquareProGuardRules:1.3.7.0' implementation 'com.github.Commit451:LoganSquareProGuardRules:1.3.7.0'
Loading
@@ -195,7 +195,7 @@ dependencies {
Loading
@@ -195,7 +195,7 @@ dependencies {
   
implementation 'com.github.alorma:diff-textview:1.3.0' implementation 'com.github.alorma:diff-textview:1.3.0'
   
implementation 'com.wdullaer:materialdatetimepicker:3.5.0' implementation 'com.wdullaer:materialdatetimepicker:3.5.2'
   
implementation 'com.github.novoda:simple-chrome-custom-tabs:0.1.5' implementation 'com.github.novoda:simple-chrome-custom-tabs:0.1.5'
   
Loading
@@ -210,7 +210,7 @@ dependencies {
Loading
@@ -210,7 +210,7 @@ dependencies {
   
implementation 'com.github.jkwiecien:EasyImage:2.0.4' implementation 'com.github.jkwiecien:EasyImage:2.0.4'
   
implementation 'com.atlassian.commonmark:commonmark:0.10.0' implementation 'com.atlassian.commonmark:commonmark:0.11.0'
   
normalImplementation('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') { normalImplementation('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') {
transitive = true transitive = true
Loading
Loading
Loading
@@ -106,8 +106,8 @@
Loading
@@ -106,8 +106,8 @@
android:noHistory="true" android:noHistory="true"
android:theme="@android:style/Theme.NoDisplay"> android:theme="@android:style/Theme.NoDisplay">
   
<!-- Standard Url --> <!-- For internal deep links -->
<intent-filter android:label="@string/deeplink_text"> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
   
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
Loading
@@ -115,6 +115,19 @@
Loading
@@ -115,6 +115,19 @@
   
<data android:scheme="@string/deeplink_scheme" /> <data android:scheme="@string/deeplink_scheme" />
</intent-filter> </intent-filter>
<!-- GitLab.com -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="gitlab.com"
android:pathPrefix="/"
android:scheme="https" />
</intent-filter>
</activity> </activity>
   
<activity android:name=".widget.UserFeedWidgetConfigureActivity"> <activity android:name=".widget.UserFeedWidgetConfigureActivity">
Loading
Loading
Loading
@@ -31,16 +31,16 @@ import com.commit451.gitlab.util.DownloadUtil
Loading
@@ -31,16 +31,16 @@ import com.commit451.gitlab.util.DownloadUtil
import timber.log.Timber import timber.log.Timber
   
/** /**
* Shows the details of a merge request * Shows the details of a build
*/ */
class BuildActivity : BaseActivity() { class BuildActivity : BaseActivity() {
   
companion object { companion object {
   
private val REQUEST_PERMISSION_WRITE_STORAGE = 1337 private const val REQUEST_PERMISSION_WRITE_STORAGE = 1337
   
private val KEY_PROJECT = "key_project" private const val KEY_PROJECT = "key_project"
private val KEY_BUILD = "key_merge_request" private const val KEY_BUILD = "key_merge_request"
   
fun newIntent(context: Context, project: Project, build: Build): Intent { fun newIntent(context: Context, project: Project, build: Build): Intent {
val intent = Intent(context, BuildActivity::class.java) val intent = Intent(context, BuildActivity::class.java)
Loading
Loading
Loading
@@ -31,7 +31,7 @@ object Prefs {
Loading
@@ -31,7 +31,7 @@ object Prefs {
const val STARTING_VIEW_TODOS = 3 const val STARTING_VIEW_TODOS = 3
   
@Retention(AnnotationRetention.SOURCE) @Retention(AnnotationRetention.SOURCE)
@IntDef(STARTING_VIEW_PROJECTS.toLong(), STARTING_VIEW_GROUPS.toLong(), STARTING_VIEW_ACTIVITY.toLong(), STARTING_VIEW_TODOS.toLong()) @IntDef(STARTING_VIEW_PROJECTS, STARTING_VIEW_GROUPS, STARTING_VIEW_ACTIVITY, STARTING_VIEW_TODOS)
annotation class StartingView annotation class StartingView
   
private lateinit var prefs: SharedPreferences private lateinit var prefs: SharedPreferences
Loading
Loading
package com.commit451.gitlab.fragment package com.commit451.gitlab.fragment
   
import android.os.Bundle import android.os.Bundle
import android.support.v4.widget.NestedScrollView
import android.support.v4.widget.SwipeRefreshLayout import android.support.v4.widget.SwipeRefreshLayout
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import android.widget.TextView import android.widget.TextView
import butterknife.BindView import butterknife.BindView
import butterknife.OnClick
import com.commit451.addendum.parceler.getParcelerParcelable import com.commit451.addendum.parceler.getParcelerParcelable
import com.commit451.addendum.parceler.putParcelerParcelable import com.commit451.addendum.parceler.putParcelerParcelable
import com.commit451.gitlab.App import com.commit451.gitlab.App
Loading
@@ -21,14 +23,14 @@ import org.greenrobot.eventbus.Subscribe
Loading
@@ -21,14 +23,14 @@ import org.greenrobot.eventbus.Subscribe
import timber.log.Timber import timber.log.Timber
   
/** /**
* Shows the build artifacts * Shows the build log
*/ */
class BuildLogFragment : ButterKnifeFragment() { class BuildLogFragment : ButterKnifeFragment() {
   
companion object { companion object {
   
private val KEY_PROJECT = "project" private const val KEY_PROJECT = "project"
private val KEY_BUILD = "build" private const val KEY_BUILD = "build"
   
fun newInstance(project: Project, build: Build): BuildLogFragment { fun newInstance(project: Project, build: Build): BuildLogFragment {
val fragment = BuildLogFragment() val fragment = BuildLogFragment()
Loading
@@ -42,6 +44,8 @@ class BuildLogFragment : ButterKnifeFragment() {
Loading
@@ -42,6 +44,8 @@ class BuildLogFragment : ButterKnifeFragment() {
   
@BindView(R.id.swipe_layout) @BindView(R.id.swipe_layout)
lateinit var swipeRefreshLayout: SwipeRefreshLayout lateinit var swipeRefreshLayout: SwipeRefreshLayout
@BindView(R.id.scrollView)
lateinit var scrollView: NestedScrollView
@BindView(R.id.log) @BindView(R.id.log)
lateinit var textLog: TextView lateinit var textLog: TextView
@BindView(R.id.message_text) @BindView(R.id.message_text)
Loading
@@ -50,6 +54,16 @@ class BuildLogFragment : ButterKnifeFragment() {
Loading
@@ -50,6 +54,16 @@ class BuildLogFragment : ButterKnifeFragment() {
lateinit var project: Project lateinit var project: Project
lateinit var build: Build lateinit var build: Build
   
@OnClick(R.id.buttonBottom)
fun onBottomClicked() {
scrollView.smoothScrollTo(0, Int.MAX_VALUE)
}
@OnClick(R.id.buttonTop)
fun onTopClicked() {
scrollView.smoothScrollTo(0, 0)
}
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
project = arguments?.getParcelerParcelable<Project>(KEY_PROJECT)!! project = arguments?.getParcelerParcelable<Project>(KEY_PROJECT)!!
Loading
Loading
Loading
@@ -32,15 +32,15 @@ class ProjectsFragment : ButterKnifeFragment() {
Loading
@@ -32,15 +32,15 @@ class ProjectsFragment : ButterKnifeFragment() {
   
companion object { companion object {
   
private val EXTRA_MODE = "extra_mode" private const val EXTRA_MODE = "extra_mode"
private val EXTRA_QUERY = "extra_query" private const val EXTRA_QUERY = "extra_query"
private val EXTRA_GROUP = "extra_group" private const val EXTRA_GROUP = "extra_group"
val MODE_ALL = 0 const val MODE_ALL = 0
val MODE_MINE = 1 const val MODE_MINE = 1
val MODE_STARRED = 2 const val MODE_STARRED = 2
val MODE_SEARCH = 3 const val MODE_SEARCH = 3
val MODE_GROUP = 4 const val MODE_GROUP = 4
   
fun newInstance(mode: Int): ProjectsFragment { fun newInstance(mode: Int): ProjectsFragment {
val args = Bundle() val args = Bundle()
Loading
Loading
Loading
@@ -15,7 +15,7 @@ open class Ref {
Loading
@@ -15,7 +15,7 @@ open class Ref {
} }
   
@Retention(AnnotationRetention.SOURCE) @Retention(AnnotationRetention.SOURCE)
@IntDef(TYPE_BRANCH.toLong(), TYPE_TAG.toLong()) @IntDef(TYPE_BRANCH, TYPE_TAG)
annotation class Type annotation class Type
   
var type: Int = 0 var type: Int = 0
Loading
Loading
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M7.41,7.84L12,12.42l4.59,-4.58L18,9.25l-6,6 -6,-6z"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M7.41,15.41L12,10.83l4.59,4.58L18,14l-6,-6 -6,6z"/>
</vector>
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
   
Loading
@@ -9,18 +11,47 @@
Loading
@@ -9,18 +11,47 @@
android:layout_height="match_parent"> android:layout_height="match_parent">
   
<android.support.v4.widget.NestedScrollView <android.support.v4.widget.NestedScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:scrollbars="vertical"> android:scrollbars="vertical">
   
<TextView <LinearLayout
android:id="@+id/log"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/activity_vertical_margin" android:orientation="vertical">
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:layout_marginRight="@dimen/activity_horizontal_margin" <ImageView
android:layout_marginTop="@dimen/activity_vertical_margin" /> android:id="@+id/buttonBottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@null"
android:padding="8dp"
app:srcCompat="@drawable/ic_keyboard_arrow_down_white_24dp" />
<TextView
android:id="@+id/log"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/activity_vertical_margin"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
tools:text="Build log here alksdjflakjsdfljasldfjalsdf"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:layout_marginTop="@dimen/activity_vertical_margin" />
<ImageView
android:id="@+id/buttonTop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@null"
android:padding="8dp"
app:srcCompat="@drawable/ic_keyboard_arrow_up_white_24dp" />
</LinearLayout>
   
</android.support.v4.widget.NestedScrollView> </android.support.v4.widget.NestedScrollView>
   
Loading
Loading
Loading
@@ -505,10 +505,6 @@
Loading
@@ -505,10 +505,6 @@
<string name="deeplink_scheme">labcoat</string> <string name="deeplink_scheme">labcoat</string>
<!-- Deep link host --> <!-- Deep link host -->
<string name="deeplink_host">app</string> <string name="deeplink_host">app</string>
<!-- Deep link titles -->
<string name="deeplink_text">Open with LabCoat</string>
<!-- Deep link paths -->
<string name="deeplink_path_issue">issue</string>
   
<string name="deeplink_navigate_error">No idea where to navigate to</string> <string name="deeplink_navigate_error">No idea where to navigate to</string>
   
Loading
Loading
apply plugin: 'com.github.ben-manes.versions' apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'com.commit451.updatewrapper' apply plugin: 'com.commit451.updatewrapper'
buildscript { buildscript {
ext.kotlinVersion = '1.2.30' ext.kotlinVersion = '1.2.31'
repositories { repositories {
jcenter() jcenter()
maven { url "https://jitpack.io" } maven { url "https://jitpack.io" }
google() google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.android.tools.build:gradle:3.1.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0' classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0'
classpath 'com.github.Commit451:updatewrapper:1.1.2' classpath 'com.github.Commit451:updatewrapper:1.2.0'
} }
} }
   
Loading
Loading
No preview for this file type
#Sat Aug 05 16:54:25 CDT 2017
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
Loading
@@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS=""
Loading
@@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value. # Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum" MAX_FD="maximum"
   
warn ( ) { warn () {
echo "$*" echo "$*"
} }
   
die ( ) { die () {
echo echo
echo "$*" echo "$*"
echo echo
Loading
@@ -155,7 +155,7 @@ if $cygwin ; then
Loading
@@ -155,7 +155,7 @@ if $cygwin ; then
fi fi
   
# Escape application args # Escape application args
save ( ) { save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " " echo " "
} }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment