Skip to content

Commit 91badc8

Browse files
committed
Migrate to Jetpack Compose
1 parent 5b4b8dc commit 91badc8

File tree

333 files changed

+2753
-6579
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+2753
-6579
lines changed

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/build
22
/captures
33
/native
4-
/SharedCode/build
5-
/app/build
4+
/android/build
5+
/common/build
6+
/desktop/build
67
.idea/
78
.gradle/
89
local.properties
9-
google-services.json
10+
*.key
11+
*.db

LICENSE.txt

Lines changed: 0 additions & 202 deletions
This file was deleted.

LinuxCommandBibliotheca.iml

Lines changed: 0 additions & 25 deletions
This file was deleted.

LinuxCommandLibrary.iml

Lines changed: 0 additions & 27 deletions
This file was deleted.

android/build.gradle.kts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
plugins {
2+
id("org.jetbrains.compose") version "1.1.1"
3+
id("com.android.application")
4+
kotlin("android")
5+
}
6+
7+
group = "com.inspiredandroid.linuxcommandbibliotheca"
8+
version = "1.0"
9+
10+
repositories {
11+
jcenter()
12+
}
13+
14+
dependencies {
15+
implementation(project(":common"))
16+
implementation("androidx.activity:activity-compose:1.4.0")
17+
implementation("androidx.compose.material:material:1.1.1")
18+
implementation("androidx.navigation:navigation-compose:2.4.2")
19+
implementation("com.google.accompanist:accompanist-appcompat-theme:0.23.1")
20+
implementation("com.google.accompanist:accompanist-systemuicontroller:0.23.1")
21+
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.4.1")
22+
}
23+
24+
android {
25+
compileSdkVersion(31)
26+
defaultConfig {
27+
applicationId = "com.inspiredandroid.linuxcommandbibliotheca"
28+
minSdkVersion(24)
29+
targetSdkVersion(31)
30+
versionCode = 68
31+
versionName = "3.0.0"
32+
}
33+
compileOptions {
34+
sourceCompatibility = JavaVersion.VERSION_1_8
35+
targetCompatibility = JavaVersion.VERSION_1_8
36+
}
37+
buildTypes {
38+
getByName("release") {
39+
isMinifyEnabled = true
40+
}
41+
getByName("debug") {
42+
isMinifyEnabled = false
43+
// isShrinkResources = true
44+
}
45+
}
46+
}

android/release/android-release.aab

14.5 MB
Binary file not shown.

android/src/main/AndroidManifest.xml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:installLocation="preferExternal"
4+
package="com.inspiredandroid.linuxcommandbibliotheca">
5+
<application
6+
android:allowBackup="false"
7+
android:supportsRtl="true"
8+
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
9+
android:label="@string/app_name"
10+
android:icon="@mipmap/ic_launcher">
11+
<activity android:name=".MainActivity" android:exported="true">
12+
<intent-filter>
13+
<action android:name="android.intent.action.MAIN"/>
14+
<category android:name="android.intent.category.LAUNCHER"/>
15+
</intent-filter>
16+
<intent-filter android:autoVerify="true">
17+
<action android:name="android.intent.action.VIEW" />
18+
19+
<category android:name="android.intent.category.DEFAULT" />
20+
<category android:name="android.intent.category.BROWSABLE" />
21+
22+
<data
23+
android:scheme="https"
24+
android:host="linuxcommandlibrary.com"
25+
android:path="/tips.html" />
26+
<data
27+
android:scheme="https"
28+
android:host="linuxcommandlibrary.com"
29+
android:path="/tips" />
30+
<data
31+
android:scheme="https"
32+
android:host="linuxcommandlibrary.com"
33+
android:path="/basics.html" />
34+
<data
35+
android:scheme="https"
36+
android:host="linuxcommandlibrary.com"
37+
android:path="/basics" />
38+
<data
39+
android:scheme="https"
40+
android:host="linuxcommandlibrary.com"
41+
android:path="/" />
42+
<data
43+
android:scheme="https"
44+
android:host="linuxcommandlibrary.com"
45+
android:path="/index.html" />
46+
<data
47+
android:scheme="https"
48+
android:host="linuxcommandlibrary.com"
49+
android:pathPrefix="/man/" />
50+
<data
51+
android:scheme="https"
52+
android:host="linuxcommandlibrary.com"
53+
android:pathPrefix="/basic/" />
54+
</intent-filter>
55+
</activity>
56+
</application>
57+
</manifest>

0 commit comments

Comments
 (0)