Skip to content

Commit

Permalink
Fix Android
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhussein89 committed Feb 16, 2022
1 parent e190cfc commit 9adfcbd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions opengl/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 29
compileSdkVersion 32

defaultConfig {
applicationId 'com.opengl.simple'
minSdkVersion 14
targetSdkVersion 28
targetSdkVersion 32
versionCode 1
versionName '1.0'
externalNativeBuild {
Expand All @@ -26,7 +26,7 @@ android {

externalNativeBuild {
cmake {
version '3.10.2'
version '3.16.0'
path 'src/main/cpp/CMakeLists.txt'
}
}
Expand Down
3 changes: 2 additions & 1 deletion opengl/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize"
android:screenOrientation="landscape"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
android:exported="true">

<meta-data android:name="android.app.lib_name"
android:value="@string/lib_name" />
Expand Down
2 changes: 1 addition & 1 deletion opengl/android/app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ${CMAKE_SOURCE_DIR}/CMakeLists.txt
cmake_minimum_required(VERSION 3.9)
cmake_minimum_required(VERSION 3.16)
project(SimpleOpenGL C CXX)

add_library(
Expand Down
9 changes: 4 additions & 5 deletions opengl/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.android.tools.build:gradle:7.0.4'
}
}

allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

6 changes: 3 additions & 3 deletions opengl/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jan 22 19:15:57 EET 2020
#Wed Feb 16 17:20:39 EET 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
zipStoreBase=GRADLE_USER_HOME

0 comments on commit 9adfcbd

Please sign in to comment.