Skip to content

Commit 999cc6e

Browse files
committed
Make the android side work
* I've also committed the build .so files for Android. Ideally, these shouldn't be in version control and should only be there when packaging the repo, but I'm not planning on publishing this on pub.dev for a while. And this is just easier.
1 parent 2e7e85d commit 999cc6e

File tree

114 files changed

+3706
-14
lines changed

Some content is hidden

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

114 files changed

+3706
-14
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
devenv.local.nix
55
.direnv
66

7+
.dart_tool
8+
lib/go_git_dart_bindings_generated.dart

android/build.gradle

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
group 'com.example.go_git_dart'
1+
group 'io.gitjournal.go_git_dart'
22
version '1.0'
33

44
buildscript {
@@ -9,7 +9,7 @@ buildscript {
99

1010
dependencies {
1111
// The Android Gradle Plugin knows how to build native code with the NDK.
12-
// classpath 'com.android.tools.build:gradle:7.3.0'
12+
classpath 'com.android.tools.build:gradle:7.3.0'
1313
}
1414
}
1515

@@ -24,7 +24,7 @@ apply plugin: 'com.android.library'
2424

2525
android {
2626
if (project.android.hasProperty("namespace")) {
27-
namespace 'com.example.go_git_dart'
27+
namespace 'io.gitjournal.go_git_dart'
2828
}
2929

3030
// Bumping the plugin compileSdkVersion requires all clients of this plugin
@@ -33,10 +33,5 @@ android {
3333

3434
defaultConfig {
3535
minSdkVersion 19
36-
sourceSets {
37-
main {
38-
jniLibs.srcDirs = ['jniLibs']
39-
}
40-
}
4136
}
4237
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.go_git_dart">
2+
package="io.gitjournal.go_git_dart">
33
</manifest>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package io.gitjournal.go_git_dart;
2+
3+
import androidx.annotation.NonNull;
4+
5+
import io.flutter.embedding.engine.plugins.FlutterPlugin;
6+
7+
public class GoGitDartFlutterLibsPlugin implements FlutterPlugin {
8+
@Override
9+
public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { }
10+
11+
@Override
12+
public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { }
13+
}
10.7 MB
Binary file not shown.
10.4 MB
Binary file not shown.
10.6 MB
Binary file not shown.
11.2 MB
Binary file not shown.

example/.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
34+
# Symbolication related
35+
app.*.symbols
36+
37+
# Obfuscation related
38+
app.*.map.json
39+
40+
# Android Studio will place build artifacts here
41+
/android/app/debug
42+
/android/app/profile
43+
/android/app/release

example/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# go_git_dart_example
2+
3+
Demonstrates how to use the go_git_dart plugin.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13+
14+
For help getting started with Flutter development, view the
15+
[online documentation](https://docs.flutter.dev/), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.

0 commit comments

Comments
 (0)