Skip to content

Commit 7e1b0cd

Browse files
author
Mohamed Sobhy
committed
Use Instabug v2.0, don't extend activities as it's not targeting 10+
1 parent 4608fe3 commit 7e1b0cd

File tree

3 files changed

+7
-26
lines changed

3 files changed

+7
-26
lines changed

app/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ dependencies {
3232
compile 'com.jakewharton:butterknife:7.0.1'
3333
compile 'com.android.support:design:23.1.1'
3434
compile 'com.android.support:appcompat-v7:23.1.1'
35-
compile 'com.google.android.gms:play-services:8.3.0'
36-
compile('com.instabug.library:instabugcompat:2.0-SNAPSHOT') {
35+
// TODO if you use a lower version than 8.4.0 you should uncomment the exclude line to avoid errors
36+
compile 'com.google.android.gms:play-services:8.4.0'
37+
compile('com.instabug.library:instabugcompat:2.0.1') {
3738
exclude module: 'appcompat-v7'
38-
// if you're facing compilation issue in build.gradle about gms different versions
39-
exclude group: 'com.google.android.gms'
39+
// TODO uncomment next line if you're facing compilation issue in build.gradle about gms different versions
40+
// exclude group: 'com.google.android.gms'
4041
}
4142
}

app/src/main/java/com/example/instabug/ui/activities/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import android.support.v4.view.GravityCompat;
1010
import android.support.v4.widget.DrawerLayout;
1111
import android.support.v7.app.ActionBarDrawerToggle;
12+
import android.support.v7.app.AppCompatActivity;
1213
import android.support.v7.widget.Toolbar;
1314
import android.view.Menu;
1415
import android.view.MenuItem;
@@ -18,13 +19,12 @@
1819

1920
import com.example.instabug.R;
2021
import com.instabug.library.Instabug;
21-
import com.instabug.library.compat.InstabugActionBarActivity;
2222

2323
import butterknife.Bind;
2424
import butterknife.ButterKnife;
2525
import butterknife.OnClick;
2626

27-
public class MainActivity extends InstabugActionBarActivity
27+
public class MainActivity extends AppCompatActivity
2828
implements NavigationView.OnNavigationItemSelectedListener {
2929

3030
@Bind(R.id.drawer_layout)

app/src/main/java/com/example/instabug/ui/fragments/CustomMapFragment.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)