Skip to content
This repository was archived by the owner on Jan 10, 2026. It is now read-only.

Commit 9f84600

Browse files
committed
ExactCalculator: Add Gradle support
Import cr.jar for building out of AOSP tree Change-Id: Icd053a83a8aee6fb2407c8e7dc9625ee30561004
1 parent 92dd141 commit 9f84600

File tree

8 files changed

+425
-0
lines changed

8 files changed

+425
-0
lines changed

build.gradle

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
plugins {
2+
id 'com.android.application' version '8.1.2'
3+
}
4+
5+
android {
6+
namespace "com.android.calculator2"
7+
compileSdk 34
8+
9+
defaultConfig {
10+
applicationId 'com.android.calculator2'
11+
minSdk 31
12+
targetSdk 34
13+
versionCode 1
14+
versionName "1.0"
15+
}
16+
17+
buildTypes {
18+
debug {
19+
minifyEnabled false
20+
}
21+
release {
22+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.flags'
23+
}
24+
}
25+
compileOptions {
26+
sourceCompatibility JavaVersion.VERSION_1_8
27+
targetCompatibility JavaVersion.VERSION_1_8
28+
}
29+
sourceSets {
30+
main {
31+
res.srcDirs = ['res']
32+
java.srcDirs = ['src']
33+
assets.srcDirs = ['assets']
34+
manifest.srcFile 'AndroidManifest.xml'
35+
}
36+
}
37+
}
38+
39+
dependencies {
40+
implementation files('cr.jar')
41+
42+
implementation 'androidx.gridlayout:gridlayout:1.0.0'
43+
implementation 'androidx.webkit:webkit:1.7.0'
44+
implementation 'com.google.android.material:material:1.9.0'
45+
}

cr.jar

34.5 KB
Binary file not shown.

gradle.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## For more details on how to configure your build environment visit
2+
# http://www.gradle.org/docs/current/userguide/build_environment.html
3+
#
4+
# Specifies the JVM arguments used for the daemon process.
5+
# The setting is particularly useful for tweaking memory settings.
6+
# Default value: -Xmx1024m -XX:MaxPermSize=256m
7+
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
8+
#
9+
# When configured, Gradle will run in incubating parallel mode.
10+
# This option should only be used with decoupled projects. More details, visit
11+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
12+
# org.gradle.parallel=true
13+
#Mon Jul 31 17:20:03 CEST 2023
14+
android.defaults.buildfeatures.buildconfig=true
15+
android.nonFinalResIds=true
16+
android.nonTransitiveRClass=true
17+
android.useAndroidX=true
18+
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8

gradle/wrapper/gradle-wrapper.jar

62.2 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

gradlew

Lines changed: 249 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)