Skip to content

Commit

Permalink
demo_apk: remove unused assets
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpan committed Oct 16, 2024
1 parent d4743bd commit 87a4d83
Show file tree
Hide file tree
Showing 12 changed files with 368 additions and 62 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: preinstall
run: pip3 install -r requirements.txt
- name: test
run: ./extract_jni.py demo.apk
run: ./extract_jni.py jni_helper/demo.apk

release:
name: release APK
Expand Down
10 changes: 10 additions & 0 deletions demo_apk/.idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions demo_apk/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions demo_apk/.idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion demo_apk/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

329 changes: 329 additions & 0 deletions demo_apk/.idea/other.xml

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions demo_apk/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ android {

dependencies {

implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.8.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}
// implementation("androidx.appcompat:appcompat:1.6.1")
// implementation("com.google.android.material:material:1.8.0")
// implementation("androidx.constraintlayout:constraintlayout:2.1.4")
// testImplementation("junit:junit:4.13.2")
// androidTestImplementation("androidx.test.ext:junit:1.1.5")
// androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}
1 change: 0 additions & 1 deletion demo_apk/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.DemoApk"
tools:targetApi="31">
<activity
android:name=".MainActivity"
Expand Down
15 changes: 5 additions & 10 deletions demo_apk/app/src/main/java/com/evilpan/demoapk/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
package com.evilpan.demoapk;

import androidx.appcompat.app.AppCompatActivity;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.evilpan.demoapk.databinding.ActivityMainBinding;

public class MainActivity extends AppCompatActivity {

private ActivityMainBinding binding;
public class MainActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

binding = ActivityMainBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());

// Example of a call to a native method
TextView tv = binding.sampleText;

TextView tv = findViewById(R.id.sample_text);
FacadeC fc = new FacadeC();
FacadeCpp fcc = new FacadeCpp();
String sb = "=== C ===\n" +
Expand All @@ -33,5 +27,6 @@ protected void onCreate(Bundle savedInstanceState) {
"dynamic = " + fcc.testDynamic() +
"\n";
tv.setText(sb);
setContentView(tv);
}
}
}
10 changes: 3 additions & 7 deletions demo_apk/app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Expand All @@ -10,10 +10,6 @@
android:id="@+id/sample_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:text="Hello World!" />

</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
16 changes: 0 additions & 16 deletions demo_apk/app/src/main/res/values-night/themes.xml

This file was deleted.

16 changes: 0 additions & 16 deletions demo_apk/app/src/main/res/values/themes.xml

This file was deleted.

0 comments on commit 87a4d83

Please sign in to comment.