Skip to content

Commit

Permalink
Host executorch.aar file on jitpack (#40)
Browse files Browse the repository at this point in the history
### Type of change
- [x] Bug fix (non-breaking change which fixes an issue)

### Tested on
- [ ] iOS
- [x] Android

### Related issues
#28

### Checklist
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated the documentation accordingly
- [x] My changes generate no new warnings
  • Loading branch information
jakmro authored Nov 28, 2024
1 parent e91ce11 commit 6243ab3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}

dependencies {
Expand Down Expand Up @@ -85,6 +86,7 @@ android {
repositories {
mavenCentral()
google()
maven { url 'https://jitpack.io' }
}

def kotlin_version = getExtOrDefault("kotlinVersion")
Expand All @@ -95,6 +97,6 @@ dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation(files("libs/executorch-llama.aar"))
implementation 'com.github.software-mansion:react-native-executorch:main-SNAPSHOT'
implementation("com.squareup.okhttp3:okhttp:4.9.2")
}
3 changes: 3 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
install:
- FILE="-Dfile=third-party/android/libs/executorch.aar"
- mvn install:install-file $FILE -DgroupId=com.software-mansion.executorch -DartifactId=repo -Dversion=0.1.2 -Dpackaging=aar -DgeneratePom=true
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.software-mansion.executorch</groupId>
<artifactId>repo</artifactId>
<version>0.1.2</version>
</project>
File renamed without changes.

0 comments on commit 6243ab3

Please sign in to comment.