Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Update to support latest Android Studio #256

Merged
merged 9 commits into from
Jan 12, 2019
Merged

Conversation

Robyer
Copy link
Contributor

@Robyer Robyer commented Jan 9, 2019

Update target SDK to API 28, minimum to API 16, update Gradle, libraries, etc. to have it working correctly in latest stable Android Studio (3.2.1).

Currently that is the minimum supported version by build tools.
Version and SDK information is overriden by build.gradle files, so it shouldn't be here anymore.
Android Studio throws build error that Google Play requires apps to use at least targat sdk 26, so let's use latest.

One problem is that we need to grant runtime permissions to access storage before using tests.
@Robyer Robyer mentioned this pull request Jan 9, 2019
compileSdkVersion 27
buildToolsVersion '27.0.3'
compileSdkVersion 28
buildToolsVersion '28.0.3'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line and the other buildToolsVersion lines can be removed altogether with 28.

@@ -9,5 +9,5 @@ endif
# Specify the hash namespace that we're using, based on the APP_STL we're using.
APP_CFLAGS += -Werror -DHASH_NAMESPACE=__gnu_cxx -Wno-error=deprecated-register
APP_PLATFORM := android-16
APP_STL := gnustl_static
APP_STL := c++_static
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is kind of a red herring and is ignored by this project, so the change on this line can be reverted. This file exists in the Tesseract code base and seems to be used for an internal build at Google.

@rmtheis
Copy link
Owner

rmtheis commented Jan 12, 2019

Nice. Thank you!

@rmtheis rmtheis merged commit ac41529 into rmtheis:master Jan 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants