Skip to content

Commit

Permalink
Traffic Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed Apr 11, 2017
1 parent f7293c4 commit 369be94
Show file tree
Hide file tree
Showing 26 changed files with 1,115 additions and 77 deletions.
11 changes: 9 additions & 2 deletions plugins/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
versionName "0.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand All @@ -20,13 +20,20 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
testCompile 'junit:junit:4.12'

compile 'com.jakewharton.timber:timber:4.5.1'
compile 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'

compile project(':traffic')
}

apply from: 'gradle-checkstyle.gradle'
2 changes: 1 addition & 1 deletion plugins/app/gradle-checkstyle.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ task checkstyle(type: Checkstyle) {
source 'src'
include '**/*.java'
exclude '**/gen/**'
exclude '**/style/*LayerTest.java'
exclude '**/*FeatureOverviewActivity.java'
classpath = files()
ignoreFailures = false
}

This file was deleted.

14 changes: 13 additions & 1 deletion plugins/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,26 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:name=".PluginApplication"
android:theme="@style/AppTheme">
<activity android:name=".FeatureOverviewActivity">
<activity android:name=".activity.FeatureOverviewActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name=".activity.TrafficActivity"
android:description="@string/description_traffic"
android:label="@string/title_traffic">
<meta-data
android:name="@string/category"
android:value="@string/category_runtime_styling"/>
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activity.FeatureOverviewActivity"/>
</activity>
</application>

</manifest>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.mapbox.mapboxsdk.plugins.testapp;

import android.app.Application;

import com.mapbox.mapboxsdk.Mapbox;

public class PluginApplication extends Application {

@Override
public void onCreate() {
super.onCreate();
Mapbox.getInstance(this, getString(R.string.mapbox_access_token));
}
}
Loading

0 comments on commit 369be94

Please sign in to comment.