Skip to content
Snippets Groups Projects
Verified Commit 541500ca authored by Mohammad Hasan Keramat J's avatar Mohammad Hasan Keramat J :homes: Committed by Erfan Abdi
Browse files

Pdfviewer: Add ability to build with soong


Signed-off-by: default avatarMohammad Hasan Keramat J <ikeramat@protonmail.com>
Change-Id: I49b7961115ba379920e6d106d87336731199fbe1
parent 64b419ac
No related branches found
No related tags found
No related merge requests found
//
// Copyright (C) 2022 LibreMobileOS Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
android_app {
name: "PdfViewer",
asset_dirs: ["src/main/assets"],
resource_dirs: ["src/main/res"],
manifest: "src/main/AndroidManifest.xml",
srcs: [
"src/main/java/**/*.java",
"src/main/java/**/*.kt",
"src/main/java_aosp/**/*.java",
],
system_ext_specific: true,
static_libs: [
"android-common",
"androidx.appcompat_appcompat",
"androidx-constraintlayout_constraintlayout",
"kotlin-annotations",
"kotlinx-coroutines-android",
"kotlinx-coroutines-core",
"pdfviewer-com.google.android.material_material",
],
platform_apis: true,
optimize: {
proguard_flags_files: ["proguard-rules.pro"],
},
data_binding: {
package_name: "app.grapheneos.pdfviewer",
view_binding: true,
},
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.grapheneos.pdfviewer"
android:targetSandboxVersion="2">
<original-package android:name="org.grapheneos.pdfviewer" />
......
package app.grapheneos.pdfviewer;
public final class BuildConfig {
public static final boolean DEBUG = false;
}
android_library_import {
name: "pdfviewer-com.google.android.material_material-nodeps",
aars: ["material-1.6.1.aar"],
sdk_version: "current",
min_sdk_version: "14",
static_libs: [
"androidx.appcompat_appcompat",
"androidx-constraintlayout_constraintlayout",
"androidx.cardview_cardview",
"androidx.coordinatorlayout_coordinatorlayout",
"androidx.core_core",
"androidx.legacy_legacy-support-core-ui",
"androidx.legacy_legacy-support-core-utils",
"androidx.fragment_fragment",
"androidx.recyclerview_recyclerview",
"androidx.transition_transition",
"androidx.vectordrawable_vectordrawable",
"androidx.viewpager2_viewpager2",
],
}
android_library {
name: "pdfviewer-com.google.android.material_material",
sdk_version: "current",
min_sdk_version: "14",
manifest: "manifests/com.google.android.material_material/AndroidManifest.xml",
static_libs: [
"pdfviewer-com.google.android.material_material-nodeps",
"androidx.annotation_annotation",
"androidx.appcompat_appcompat",
"androidx.cardview_cardview",
"androidx.coordinatorlayout_coordinatorlayout",
"androidx.core_core",
"androidx.legacy_legacy-support-core-ui",
"androidx.legacy_legacy-support-core-utils",
"androidx.fragment_fragment",
"androidx.recyclerview_recyclerview",
"androidx.transition_transition",
"androidx.vectordrawable_vectordrawable",
"androidx.viewpager2_viewpager2",
"androidx-constraintlayout_constraintlayout",
],
java_version: "1.7",
}
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.material" >
<uses-sdk android:minSdkVersion="14" />
<application />
</manifest>
\ No newline at end of file
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment