mirror of
				https://github.com/pocketpy/pocketpy
				synced 2025-10-26 22:40:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			56 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| // The Android Gradle Plugin builds the native code with the Android NDK.
 | |
| 
 | |
| group 'com.example.pocketpy'
 | |
| version '1.0'
 | |
| 
 | |
| buildscript {
 | |
|     repositories {
 | |
|         google()
 | |
|         mavenCentral()
 | |
|     }
 | |
| 
 | |
|     dependencies {
 | |
|         // The Android Gradle Plugin knows how to build native code with the NDK.
 | |
|         classpath 'com.android.tools.build:gradle:7.1.2'
 | |
|     }
 | |
| }
 | |
| 
 | |
| rootProject.allprojects {
 | |
|     repositories {
 | |
|         google()
 | |
|         mavenCentral()
 | |
|     }
 | |
| }
 | |
| 
 | |
| apply plugin: 'com.android.library'
 | |
| 
 | |
| android {
 | |
|     // Bumping the plugin compileSdkVersion requires all clients of this plugin
 | |
|     // to bump the version in their app.
 | |
|     compileSdkVersion 31
 | |
| 
 | |
|     // Bumping the plugin ndkVersion requires all clients of this plugin to bump
 | |
|     // the version in their app and to download a newer version of the NDK.
 | |
|     ndkVersion "25.2.9519653"
 | |
| 
 | |
|     // Invoke the shared CMake build with the Android Gradle Plugin.
 | |
|     externalNativeBuild {
 | |
|         cmake {
 | |
|             path "../src/CMakeLists.txt"
 | |
| 
 | |
|             // The default CMake version for the Android Gradle Plugin is 3.10.2.
 | |
|             // https://developer.android.com/studio/projects/install-ndk#vanilla_cmake
 | |
|             //
 | |
|             // The Flutter tooling requires that developers have CMake 3.10 or later
 | |
|             // installed. You should not increase this version, as doing so will cause
 | |
|             // the plugin to fail to compile for some customers of the plugin.
 | |
|             // version "3.10.2"
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     compileOptions {
 | |
|         sourceCompatibility JavaVersion.VERSION_11
 | |
|         targetCompatibility JavaVersion.VERSION_11
 | |
|     }
 | |
| }
 |