Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
8240d73
Update version to 29
kiryldz May 11, 2020
c829735
Merge pull request #246 from mapbox/kdz-update-compile-version
kiryldz May 11, 2020
801a606
Updated with 0.13.0
yuryybk Jun 23, 2020
6c3080d
Add fixes by review
yuryybk Jun 23, 2020
3069510
Describe all removed deprecated methods for 0.12
yuryybk Jun 24, 2020
4b36bd6
Rephraze description regarding new rendering engine
yuryybk Jun 24, 2020
40d41c6
Add more changes related to core
yuryybk Jun 24, 2020
062aa4c
Update code for 0.13.0
kiryldz Jun 24, 2020
4325312
Fix description
yuryybk Jun 24, 2020
711f63f
Exclude not important change regarding segmentation improvement
yuryybk Jun 24, 2020
d4ae1df
Modify log in accordance with common for all platforms
yuryybk Jun 30, 2020
0407d05
Fix descriptions
yuryybk Jun 30, 2020
4e8830b
Update CHANGELOG.md
yuryybk Jun 30, 2020
47a0d79
Merge pull request #251 from mapbox/kdz-update-0.13.0
kiryldz Jun 30, 2020
aa65db2
Revert "Update CHANGELOG.md"
yuryybk Jun 30, 2020
47edb8b
Merge pull request #250 from mapbox/ybk_update_changelog
yuryybk Jun 30, 2020
43de252
Move ARCamera changes to AR section
yuryybk Jul 1, 2020
e5fe50f
Merge pull request #253 from mapbox/ybk_update_changelog
yuryybk Jul 1, 2020
1a5a9cb
Update Mapbox maven repo settings.
yunikkk Aug 3, 2021
59749fd
Merge pull request #271 from mapbox/fix-mapbox-maven-settings
yunikkk Aug 3, 2021
4403d42
Create dependabot.yml
ThibaudLopez Feb 12, 2024
05382e8
Merge pull request #288 from mapbox/ThibaudLopez-patch-2
ThibaudLopez Feb 13, 2024
2415ab9
[AutoCodeowners] Add CODEOWNERS file (#289)
mapbox-mapbox-universe-portal[bot] Sep 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Changelog

## v0.13.0

### Vision
- Add video recording for custom `VideoSource` implementation
- Update Vision, Vision AR and Vision Safety to Android SDK 10
- Add all required permissions to Vision SDK manifest
- Change default resolution of Camera2VideoSourceImpl to 960*540
- Add optional parameter to Camera2VideoSourceImpl constructor to enable\disable autofocus
- Add support of reverse landscape orientation
- Integrated new rendering engine for VisionView and VisionArView with better performance
- Add `VisionManager.setCameraHeight`
- Add `aspectRatio`, `roll`, `pitch`, `yaw`, `height` properties to `Camera`
- Improve lane detection
- Stop sending some inaccurate events until the camera is calibrated
- Introduce automatic camera recalibration
- Expand Japan region to include Okinawa
- Fix bug with speed estimation when a vehicle is stopped
- Fix bug that prevented new China users authorization
- Remove deprecated code for 0.12.0:
- `VisionManager.setModelPerformanceConfig`
- `VisionReplayManager.setModelPerformanceConfig`
- `SystemInfoUtils.getSnpeSupportedBoard`
- `SystemInfoUtils.getSystemProperty`
- `enum class SupportedSnapdragonBoards`
- `class ModelPerformanceConfig`

### AR

- Deprecate `ARCamera` class in favor of utilization of `Camera` class

## v0.12.0

### Device support
Expand Down
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @mapbox/vision-android
6 changes: 3 additions & 3 deletions Examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apply from: "../gradle/versions.gradle"
apply from: "../gradle/ktlint.gradle"

android {
compileSdkVersion 28
compileSdkVersion compile_sdk_version

compileOptions {
sourceCompatibility 1.8
Expand All @@ -18,8 +18,8 @@ android {

defaultConfig {
applicationId "com.mapbox.vision.examples"
minSdkVersion 23
targetSdkVersion 28
minSdkVersion min_sdk_version
targetSdkVersion target_sdk_version
versionCode 1
versionName "1.0"

Expand Down
52 changes: 28 additions & 24 deletions Examples/src/main/java/com/mapbox/vision/examples/BaseActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.text.Html;
import android.text.Spanned;
import android.widget.Toast;

import android.text.method.LinkMovementMethod;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;

import androidx.core.text.HtmlCompat;
import com.mapbox.vision.mobile.core.utils.SystemInfoUtils;
import com.mapbox.vision.mobile.core.utils.snapdragon.SupportedSnapdragonBoards;
import com.mapbox.vision.utils.VisionLogger;

public abstract class BaseActivity extends AppCompatActivity {
Expand All @@ -29,17 +27,28 @@ public abstract class BaseActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

String board = SystemInfoUtils.INSTANCE.getSnpeSupportedBoard();
if (!SupportedSnapdragonBoards.isBoardSupported(board)) {
Spanned text =
Html.fromHtml("The device is not supported, you need <b>Snapdragon-powered</b> device with <b>OpenCL</b> support, more details at <b>https://www.mapbox.com/android-docs/vision/overview/</b>");
Toast.makeText(this, text, Toast.LENGTH_LONG).show();
if (!SystemInfoUtils.INSTANCE.isVisionSupported()) {
final TextView textView = new TextView(this);
final int padding = (int) dpToPx(20f);
textView.setPadding(padding, padding, padding, padding);
textView.setMovementMethod(LinkMovementMethod.getInstance());
textView.setClickable(true);
textView.setText(
HtmlCompat.fromHtml(
getString(R.string.vision_not_supported_message),
HtmlCompat.FROM_HTML_MODE_LEGACY
)
);
new AlertDialog.Builder(this)
.setTitle(R.string.vision_not_supported_title)
.setView(textView)
.setCancelable(false)
.show();

VisionLogger.Companion.e(
"NotSupportedBoard",
"Current board is " + board + ", Supported Boards: [ " + getSupportedBoardNames() + " ]; System Info: [ " + SystemInfoUtils.INSTANCE.obtainSystemInfo() + " ]"
"BoardNotSupported",
"System Info: [" + SystemInfoUtils.INSTANCE.obtainSystemInfo() + "]"
);
finish();
return;
}

initViews();
Expand All @@ -53,15 +62,6 @@ protected void onCreate(Bundle savedInstanceState) {
}
}

private String getSupportedBoardNames() {
StringBuilder sb = new StringBuilder();
for (SupportedSnapdragonBoards board : SupportedSnapdragonBoards.values()) {
sb.append(board.name());
}

return sb.toString();
}

protected boolean allPermissionsGranted() {
for (String permission : getRequiredPermissions()) {
if (ContextCompat.checkSelfPermission(this, permission) != PackageManager.PERMISSION_GRANTED) {
Expand Down Expand Up @@ -94,6 +94,10 @@ private String[] getRequiredPermissions() {
return permissions;
}

private float dpToPx(final float dp) {
return dp * getApplicationContext().getResources().getDisplayMetrics().density;
}

@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[], @NonNull int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
Expand Down
2 changes: 2 additions & 0 deletions Examples/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
<string name="poi_example">POI Example</string>
<string name="camera_calibration_progress">Camera calibration: %1$d %%</string>
<string name="usb_video_source_example">Usb Camera Example</string>
<string name="vision_not_supported_title">Device is not supported</string>
<string name="vision_not_supported_message">Vision SDK does not support this device yet, check more details at &lt;a href=\"https://docs.mapbox.com/android/vision/overview/#requirements\">docs.mapbox.com&lt;/a></string>
</resources>
16 changes: 8 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ allprojects {
google()
jcenter()

maven { url "https://mapbox.bintray.com/mapbox" }

maven {
credentials {
username mapboxMavenUser
password mapboxMavenToken
}
url 'https://api.mapbox.com/downloads/v2/releases/maven'
authentication {
basic(BasicAuthentication)
}

url 'https://api.mapbox.com/downloads/v1/vision/android/maven'
credentials {
// Do not change the username below.
// This should always be `mapbox` (not your username).
username = 'mapbox'
// Use the secret token you stored in gradle.properties as the password
password = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: System.getenv("MAPBOX_DOWNLOADS_TOKEN") ?: ""
}
}

maven { url 'http://raw.github.com/saki4510t/libcommon/master/repository/' }
Expand Down
12 changes: 6 additions & 6 deletions gradle/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
ext {
gradle_plugin ='3.6.1'
kotlin_version = '1.3.61'
gradle_plugin ='3.6.3'
kotlin_version = '1.3.72'

min_sdk_version = 23
target_sdk_version = 28
compile_sdk_version = 28
build_tools_version = '28.0.3'
target_sdk_version = 29
compile_sdk_version = 29
build_tools_version = '29.0.2'

android_x_appcompat = '1.1.0'

vision = '0.12.0'
vision = '0.13.0'

mapbox_core = '1.4.1'
mapbox_navigation = '0.42.5'
Expand Down