1/* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17// Create a new properties file using the correct version 18 genrule_defaults { 19 name: "android-smali_version_defaults", 20 srcs: [":android-smali_build.gradle"], 21 cmd: "echo \"application.version=$$(grep -o -e \"^version = '\\(.*\\)'\" $(in) | grep -o -e \"[0-9.]\\+\")-aosp\" > $(out)", 22} 23 24filegroup { 25 name: "android-smali_script", 26 srcs: ["scripts/smali"], 27} 28 29filegroup { 30 name: "android-baksmali_script", 31 srcs: ["scripts/baksmali"], 32} 33 34filegroup { 35 name: "android-smali_build.gradle", 36 srcs: ["build.gradle"], 37} 38