mirror of
				https://github.com/android/ndk-samples
				synced 2025-11-04 14:27:06 +08:00 
			
		
		
		
	It's still quite a lot for just CHECK, LOG, and DISALLOW_COPY_AND_ASSIGN. The strings stuff is only needed because r26 is too old to have the stdlib string split/starts_with/etc. Maybe I'll end up wanting more later and this is a worthwhile start?
		
			
				
	
	
		
			32 lines
		
	
	
		
			600 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			600 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
plugins {
 | 
						|
    id("ndksamples.android.library")
 | 
						|
}
 | 
						|
 | 
						|
android {
 | 
						|
    namespace = "com.android.ndk.samples.base"
 | 
						|
 | 
						|
    externalNativeBuild {
 | 
						|
        cmake {
 | 
						|
            path = file("src/main/cpp/CMakeLists.txt")
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
    buildFeatures {
 | 
						|
        prefabPublishing = true
 | 
						|
    }
 | 
						|
 | 
						|
    prefab {
 | 
						|
        create("base") {
 | 
						|
            headers = "src/main/cpp/include"
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
dependencies {
 | 
						|
 | 
						|
    implementation(libs.appcompat)
 | 
						|
    implementation(libs.material)
 | 
						|
    testImplementation(libs.junit)
 | 
						|
    androidTestImplementation(libs.ext.junit)
 | 
						|
    androidTestImplementation(libs.espresso.core)
 | 
						|
} |