diff options
author | Xusong Wang <xusongw@google.com> | 2021-10-12 17:49:56 -0700 |
---|---|---|
committer | Xusong Wang <xusongw@google.com> | 2021-11-02 10:42:52 -0700 |
commit | 9a70eae6f1b9c7dd25f36f80487efea0c0b39658 (patch) | |
tree | 04913eb59dda91b55511d8df5a8b327079d3f1e1 | |
parent | b6363490c3bb64ddf2ec2308ad62eadb68c50ae3 (diff) | |
download | renderscript-intrinsics-replacement-toolkit-9a70eae6f1b9c7dd25f36f80487efea0c0b39658.tar.gz |
Update project to use SDK build tools 31.0.0.
-rw-r--r-- | .gitignore | 10 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | build.gradle | 6 | ||||
-rw-r--r-- | gradle/wrapper/gradle-wrapper.properties | 2 | ||||
-rw-r--r-- | local.properties | 10 | ||||
-rw-r--r-- | renderscript-toolkit/build.gradle | 16 | ||||
-rw-r--r-- | test-app/build.gradle | 18 | ||||
-rw-r--r-- | test-app/src/main/AndroidManifest.xml | 4 |
8 files changed, 32 insertions, 36 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a77871b --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +*.iml +.gradle +/local.properties +/.idea +/.vscode +.DS_Store +/build +/captures +.externalNativeBuild +.cxx @@ -20,7 +20,7 @@ library that you can add to your project. These functions execute multithreaded on the CPU. They take advantage of Neon/AdvSimd on Arm processors and SSE on Intel's. -Compared to the RenderScript Intrinisics, this Toolkit is simpler to use and twice as fast +Compared to the RenderScript Intrinsics, this Toolkit is simpler to use and twice as fast when executing on the CPU. However RenderScript Intrinsics allow more flexibility for the type of allocations supported. This toolkit does not support allocations of floats; most the functions support ByteArrays and Bitmaps. diff --git a/build.gradle b/build.gradle index b94928e..4cfb714 100644 --- a/build.gradle +++ b/build.gradle @@ -1,12 +1,12 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = "1.4.31" + ext.kotlin_version = "1.5.31" repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:4.2.0-beta06' + classpath 'com.android.tools.build:gradle:7.0.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong @@ -17,7 +17,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f2ff00a..6154b02 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Tue Mar 30 16:57:53 PDT 2021 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME diff --git a/local.properties b/local.properties deleted file mode 100644 index e3d3799..0000000 --- a/local.properties +++ /dev/null @@ -1,10 +0,0 @@ -## This file is automatically generated by Android Studio. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file should *NOT* be checked into Version Control Systems, -# as it contains information specific to your local configuration. -# -# Location of the SDK. This is only used by Gradle. -# For customization when using a Version Control System, please read the -# header note. -sdk.dir=/home/jeanluc/Android/Sdk
\ No newline at end of file diff --git a/renderscript-toolkit/build.gradle b/renderscript-toolkit/build.gradle index bc50f90..7d62b0e 100644 --- a/renderscript-toolkit/build.gradle +++ b/renderscript-toolkit/build.gradle @@ -4,15 +4,15 @@ plugins { } android { - compileSdkVersion 30 - buildToolsVersion "30.0.3" + compileSdkVersion 31 + buildToolsVersion "31.0.0" defaultConfig { minSdkVersion 16 - targetSdkVersion 30 + targetSdkVersion 31 versionCode 1 versionName "1.0" - + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" externalNativeBuild { @@ -40,16 +40,10 @@ android { path file('src/main/cpp/CMakeLists.txt') } } - //ndkVersion '22.0.7026061' } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation 'androidx.core:core-ktx:1.3.2' - implementation 'androidx.appcompat:appcompat:1.2.0' - implementation 'com.google.android.material:material:1.3.0' - testImplementation 'junit:junit:4.+' - androidTestImplementation 'androidx.test.ext:junit:1.1.2' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' + implementation 'androidx.core:core-ktx:1.6.0' } diff --git a/test-app/build.gradle b/test-app/build.gradle index cb0da65..de1d8d7 100644 --- a/test-app/build.gradle +++ b/test-app/build.gradle @@ -4,13 +4,13 @@ plugins { } android { - compileSdkVersion 30 - buildToolsVersion "30.0.3" + compileSdkVersion 31 + buildToolsVersion "31.0.0" defaultConfig { applicationId "com.google.android.renderscript_test" minSdkVersion 16 - targetSdkVersion 30 + targetSdkVersion 31 versionCode 1 versionName "1.0" @@ -35,10 +35,10 @@ android { dependencies { implementation project(":renderscript-toolkit") implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation 'androidx.core:core-ktx:1.3.2' - implementation 'androidx.appcompat:appcompat:1.2.0' - implementation 'com.google.android.material:material:1.3.0' - testImplementation 'junit:junit:4.+' - androidTestImplementation 'androidx.test.ext:junit:1.1.2' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' + implementation 'androidx.core:core-ktx:1.6.0' + implementation 'androidx.appcompat:appcompat:1.3.1' + implementation 'com.google.android.material:material:1.4.0' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' } diff --git a/test-app/src/main/AndroidManifest.xml b/test-app/src/main/AndroidManifest.xml index 7dd5885..c9d3307 100644 --- a/test-app/src/main/AndroidManifest.xml +++ b/test-app/src/main/AndroidManifest.xml @@ -9,7 +9,9 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/Theme.RenderscriptIntrinsicsReplacementToolkit"> - <activity android:name=".MainActivity"> + <activity + android:name=".MainActivity" + android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> |