Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dce8fa27 authored by Peter Cai's avatar Peter Cai
Browse files

Move hidden API shims via reflection to a standalone package

This way we can skip them in AOSP builds
parent ec064f34
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  <component name="CompilerConfiguration">
    <bytecodeTargetLevel target="1.7">
      <module name="OpenEUICC.app" target="11" />
      <module name="OpenEUICC.libs.hidden-apis-shim" target="11" />
      <module name="OpenEUICC.libs.lpad-sm-dp-plus-connector" target="1.8" />
      <module name="OpenEUICC.libs.lpad-sm-dp-plus-connector.main" target="1.8" />
      <module name="OpenEUICC.libs.lpad-sm-dp-plus-connector.test" target="1.8" />
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
            <option value="$PROJECT_DIR$" />
            <option value="$PROJECT_DIR$/app" />
            <option value="$PROJECT_DIR$/libs" />
            <option value="$PROJECT_DIR$/libs/hidden-apis-shim" />
            <option value="$PROJECT_DIR$/libs/hidden-apis-stub" />
            <option value="$PROJECT_DIR$/libs/lpad-sm-dp-plus-connector" />
          </set>
+1 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ android {

dependencies {
    compileOnly project(':libs:hidden-apis-stub')
    implementation project(':libs:hidden-apis-shim')
    implementation project(":libs:lpad-sm-dp-plus-connector")
    implementation 'androidx.core:core-ktx:1.7.0'
    implementation 'androidx.appcompat:appcompat:1.4.1'
+1 −0
Original line number Diff line number Diff line
/build
 No newline at end of file
+40 −0
Original line number Diff line number Diff line
plugins {
    id 'com.android.library'
    id 'org.jetbrains.kotlin.android'
}

android {
    compileSdk 32

    defaultConfig {
        minSdk 30
        targetSdk 32

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        consumerProguardFiles "consumer-rules.pro"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }
}

dependencies {

    implementation 'androidx.core:core-ktx:1.7.0'
    implementation 'androidx.appcompat:appcompat:1.4.2'
    implementation 'com.google.android.material:material:1.6.1'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
 No newline at end of file
Loading