Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-android
Commits
ab7431fc
Commit
ab7431fc
authored
Mar 02, 2017
by
Robert Hitt
Browse files
Added Fabric stuff
-Also removed animation
parent
25084e7a
Pipeline
#1022
passed with stages
in 5 minutes and 48 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/build.gradle
View file @
ab7431fc
buildscript
{
repositories
{
maven
{
url
'https://maven.fabric.io/public'
}
}
dependencies
{
classpath
'io.fabric.tools:gradle:1.+'
}
}
apply
plugin:
'com.android.application'
apply
plugin:
'io.fabric'
repositories
{
maven
{
url
'https://maven.fabric.io/public'
}
}
apply
plugin:
'android-apt'
apply
plugin:
'realm-android'
apply
plugin:
'me.tatarka.retrolambda'
...
...
@@ -51,4 +66,7 @@ dependencies {
testCompile
'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
compile
'com.github.daniel-stoneuk:material-about-library:1.3.0'
compile
'com.takisoft.fix:preference-v7:25.1.1.0'
compile
(
'com.crashlytics.sdk.android:crashlytics:2.6.6@aar'
)
{
transitive
=
true
;
}
}
app/src/main/AndroidManifest.xml
View file @
ab7431fc
...
...
@@ -63,6 +63,9 @@
<service
android:name=
".util.NotificationService"
android:exported=
"false"
/>
<meta-data
android:name=
"io.fabric.ApiKey"
android:value=
"efd41c497ec3bc605941d2bbb6353dfc2b2e3710"
/>
</application>
</manifest>
\ No newline at end of file
app/src/main/java/srct/whatsopen/MyApplication.java
View file @
ab7431fc
...
...
@@ -7,8 +7,10 @@ import android.content.pm.ActivityInfo;
import
android.content.res.Configuration
;
import
android.preference.PreferenceManager
;
import
com.crashlytics.android.Crashlytics
;
import
com.squareup.leakcanary.LeakCanary
;
import
io.fabric.sdk.android.Fabric
;
import
io.realm.Realm
;
import
io.realm.RealmConfiguration
;
...
...
@@ -17,6 +19,7 @@ public class MyApplication extends Application {
@Override
public
void
onCreate
()
{
super
.
onCreate
();
Fabric
.
with
(
this
,
new
Crashlytics
());
// Set up LeakCanary for memory leak detection
if
(
LeakCanary
.
isInAnalyzerProcess
(
this
))
{
...
...
app/src/main/java/srct/whatsopen/views/adapters/FacilityListAdapter.java
View file @
ab7431fc
...
...
@@ -234,12 +234,7 @@ public class FacilityListAdapter extends
Intent
intent
=
new
Intent
(
mContext
,
DetailActivity
.
class
);
intent
.
putExtra
(
"name"
,
data
.
getName
());
// for some reason I need this for the transition to work
Pair
<
View
,
String
>
p1
=
Pair
.
create
((
View
)
nameTextView
,
""
);
ActivityOptionsCompat
transitionActivityOptions
=
ActivityOptionsCompat
.
makeSceneTransitionAnimation
(
mActivity
,
p1
);
mContext
.
startActivity
(
intent
,
transitionActivityOptions
.
toBundle
());
mContext
.
startActivity
(
intent
);
}
// toggles favorite status
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment