naett.c

Tiny cross-platform HTTP / HTTPS client library in C.
git clone git://git.finwo.net/lib/naett.c
Log | Files | Refs | README | LICENSE

build.gradle (1397B)


      1 plugins {
      2     id 'com.android.application'
      3 }
      4 
      5 android {
      6     namespace "naett.test"
      7 
      8     compileSdk 29
      9     ndkVersion '21.0.6113669'
     10     compileOptions {
     11         sourceCompatibility JavaVersion.VERSION_1_8
     12         targetCompatibility JavaVersion.VERSION_1_8
     13     }
     14 
     15     defaultConfig {
     16         applicationId 'naett.test'
     17         minSdk 26
     18         targetSdk 29
     19         externalNativeBuild {
     20             cmake {
     21                 arguments '-DANDROID_STL=c++_static'
     22             }
     23         }
     24         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
     25     }
     26     buildTypes {
     27         release {
     28             minifyEnabled true
     29             shrinkResources true
     30             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
     31         }
     32         debug {
     33             externalNativeBuild {
     34                 cmake {
     35                     cFlags '-g'
     36                 }
     37             }
     38             packagingOptions {
     39                 doNotStrip '**.so'
     40             }
     41             debuggable true
     42         }
     43     }
     44     externalNativeBuild {
     45         cmake {
     46             // version '3.10.2'
     47             path 'src/main/cpp/CMakeLists.txt'
     48         }
     49     }
     50 }
     51 
     52 dependencies {
     53     androidTestImplementation 'androidx.test:runner:1.4.0'
     54     androidTestImplementation 'androidx.test:rules:1.4.0'
     55 }
     56 
     57 task printAppID {
     58     println("APPID:${android.defaultConfig.applicationId}")
     59 }