Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
2ffecaa
The mapping of Accounts feed type needs to be corrected.
NileshPawarCitrix May 15, 2015
e1e879e
add the the updated jar to the sample project.
NileshPawarCitrix May 15, 2015
21fa760
Fix the SFOAuthService.java
NileshPawarCitrix May 26, 2015
e49350c
Add the extra entities/ISFEntities.java
NileshPawarCitrix May 26, 2015
07e1f06
update the jar
NileshPawarCitrix May 26, 2015
6d27bbe
Fix the constructor.
NileshPawarCitrix May 29, 2015
af75cf1
fix the feedtype mapping for groups.
NileshPawarCitrix Jun 23, 2015
469adf4
Implement SFApiQuery setBody for ArrayList
KyleStittleburgCitrix Jul 8, 2015
cc5919b
proper tabs
KyleStittleburgCitrix Jul 8, 2015
08236c2
Merge pull request #1 from KyleStittleburgCitrix/master
NileshPawarCitrix Jul 8, 2015
eac7a13
Send POST body even in DELETE.
NileshPawarCitrix Jul 13, 2015
cb4b7df
set output flag for delete verb
NileshPawarCitrix Jul 13, 2015
f8ed282
use contains instead of endsWith. this class should really be depreca…
NileshPawarCitrix Jul 13, 2015
b7760bc
make the gradle changes to generate the necessary maven artifacts.
NileshPawarCitrix Aug 13, 2015
27c621f
use mavenCentral dependency.
NileshPawarCitrix Aug 14, 2015
e163ae2
Create tasks to make suitable builds for pushing to mavenCentral
NileshPawarCitrix Aug 14, 2015
3332471
Merge pull request #2 from citrix/nilesh/SFAND-maven_publish
NileshPawarCitrix Aug 14, 2015
7b1c414
Update the README.md to include the gradle/maven dependencies usage
NileshPawarCitrix Aug 20, 2015
05446ff
Add connection manager. Fix the canReNewTokenInternally
NileshPawarCitrix Aug 25, 2015
b2a068a
Merge pull request #3 from citrix/nilesh/SFAND-conn_mgr
NileshPawarCitrix Aug 25, 2015
c805e75
updates from the sharefile internal code.
NileshPawarCitrix Aug 26, 2015
9306525
Update the version.
NileshPawarCitrix Aug 26, 2015
ad8f8d3
remove the @Element from behind.
NileshPawarCitrix Aug 26, 2015
f5d8b19
make the url trimming more robust to handle server side encoding issues.
NileshPawarCitrix Aug 26, 2015
ec7e285
Merge pull request #4 from citrix/nilesh/SFAND-updates
NileshPawarCitrix Aug 26, 2015
294591d
Add a new helper class.
NileshPawarCitrix Aug 28, 2015
c7e8afe
change the method name. Java wont allow us to call this function othe…
NileshPawarCitrix Aug 28, 2015
0234125
Use the Method Override for DELETE which takes postBody since Android…
NileshPawarCitrix Aug 31, 2015
82b3182
Don't return null on input streams.
NileshPawarCitrix Aug 31, 2015
1814019
fix the release builds for the sample.
NileshPawarCitrix Sep 15, 2015
613c2f5
Fix the protocol links and add the setTag/getTag functions applicatio…
NileshPawarCitrix Sep 16, 2015
ba26958
remove the error call
NileshPawarCitrix Sep 16, 2015
e4f27dd
fix the protocol links
NileshPawarCitrix Sep 17, 2015
f438296
Add the get/set server response interface functions.
NileshPawarCitrix Sep 17, 2015
92e012d
fixup the SFConnectionManager calls
NileshPawarCitrix Sep 17, 2015
99f9b7a
make calls to SFConnectionManager getInputStream
NileshPawarCitrix Sep 17, 2015
ee30e16
Update the documentation with the pro-gurad section.
NileshPawarCitrix Sep 17, 2015
800d8b8
Merge pull request #5 from citrix/nilesh/fix_protocol_links
NileshPawarCitrix Sep 17, 2015
5384a05
Remove pointless synchronization on global static functions.
NileshPawarCitrix Sep 22, 2015
5d5d33d
Go back to the old upload method.
NileshPawarCitrix Sep 23, 2015
6b03803
Check for previous query parameters using the URLDecode too.
NileshPawarCitrix Sep 25, 2015
356e36d
Add new models and Entities.
NileshPawarCitrix Dec 8, 2015
4a1097d
delete unwanted file.
NileshPawarCitrix Dec 8, 2015
8ca6858
borrow the fixes from the private sdk
NileshPawarCitrix Dec 8, 2015
a23823b
remove the maven compile dependecy on apache libs and add local jars …
NileshPawarCitrix Dec 8, 2015
3cee312
remove the SFApiQueryBuilder
NileshPawarCitrix Dec 8, 2015
67dcaef
test the sample code with the 3.1.0 SDK.
NileshPawarCitrix Dec 8, 2015
ee761ef
Merge pull request #6 from citrix/nilesh/SFAND-updated_sdk
NileshPawarCitrix Dec 8, 2015
6291b45
Update the proguard.cfg for the Sample and documentation
NileshPawarCitrix Dec 11, 2015
e88e957
add search location for maven
NileshPawarCitrix Dec 24, 2015
52b92d0
fix the hyperlink formatting in the README.md
NileshPawarCitrix Dec 24, 2015
a062134
Pull changes from SF and auto-generated code from release 4.3
NileshPawarCitrix Jan 11, 2016
817bd2c
Merge pull request #7 from citrix/nilesh/SFAND-pullfrom_sf
NileshPawarCitrix Jan 11, 2016
2a01120
Fix the CONTENT_LENGTH issues with empty httpost bodies on Desktop java
NileshPawarCitrix Apr 5, 2016
ebc468d
Uset the latest SDK. Add a sample WebLogin ID/Secret. Use RequestParams
NileshPawarCitrix Apr 22, 2016
76515d0
Borrow the DELETE fix from ShareFile.
NileshPawarCitrix Jun 6, 2016
1380786
1) get latest changes from the shareFile autogenerated build
NileshPawarCitrix Jul 18, 2016
5c3ad31
Merge pull request #9 from citrix/release/4.9
NileshPawarCitrix Jul 18, 2016
cefd1d2
get the changes from sharefile release/4.10
NileshPawarCitrix Nov 23, 2016
a65a2e2
get the gradle changes from sharefile release/4.10
NileshPawarCitrix Nov 23, 2016
7af610d
Merge pull request #10 from citrix/nilesh/4.10
NileshPawarCitrix Nov 23, 2016
ac323f9
Copy new models from private branch to public.
NileshPawarCitrix Jul 18, 2017
c6612aa
Move all the internal models to public models.
NileshPawarCitrix Jul 27, 2017
968b74b
Merge pull request #15 from citrix/release_3.1.5
NileshPawarCitrix Jul 27, 2017
9d154db
Add changes required for usage in Lovisa
jon-kare-sorensen Mar 23, 2022
abae86e
Delete Sample project and Maven scripts
jon-kare-sorensen Mar 23, 2022
ce9623f
Add workflow CI to repo
jon-kare-sorensen Mar 23, 2022
9ec3e1a
Add workflow CI to repo with correct branch
jon-kare-sorensen Mar 23, 2022
fd4fed1
restructure project
jon-kare-sorensen Mar 23, 2022
99dd199
updated build.gradle file
jon-kare-sorensen Mar 24, 2022
ee66835
attemt to make gradlew executable
jon-kare-sorensen Mar 24, 2022
655c320
added publish script and updated publishing section in build.gradle
jon-kare-sorensen Mar 24, 2022
46f9603
deleted in-project dependencies jars
jon-kare-sorensen Mar 24, 2022
0017745
fixed errors in gradle.build / publish.yml
jon-kare-sorensen Mar 24, 2022
90680d2
Switched to Java 11
jon-kare-sorensen Mar 24, 2022
e8f4d4a
updated some dependencies
jon-kare-sorensen Mar 28, 2022
60e2fd5
SIVIL1-1986 Legger til støtte for strømmet filopplasting
Tmfwang Feb 1, 2024
86ae21d
Merge pull request #1 from domstolene/SIVIL1-1986-støtte-for-streamed…
Tmfwang Feb 1, 2024
17f3515
SIVIL1-1986 Bumper versjonsnummer til 3.1.6
Tmfwang Feb 1, 2024
760f04f
Merge pull request #2 from domstolene/SIVIL1-1986-bumper-versjonsnumm…
Tmfwang Feb 1, 2024
c62b17e
update actions to latest version
jon-kare-sorensen May 6, 2025
2364ed6
Update publish.yml
jon-kare-sorensen May 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion ShareFileJavaSDK/.classpath → .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="libs/gson-2.2.4.jar" sourcepath="libs/src/gson-2.2.4-sources.jar"/>
<classpathentry kind="lib" path="libs/gson-2.8.0.jar" sourcepath="libs/src/gson-2.8.0-sources.jar"/>
<classpathentry kind="lib" path="libs/httpcore-4.3.2.jar"/>
<classpathentry kind="lib" path="libs/commons-codec-1.6.jar"/>
<classpathentry kind="output" path="bin"/>
Expand Down
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# These are explicitly windows files and should use crlf
*.bat text eol=crlf

31 changes: 31 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

- uses: gradle/gradle-build-action@v3
# env:
# CREDENTIALS: -PGITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_USER=${{ github.actor }} -- ${CREDENTIALS}
with:
gradle-version: wrapper
arguments: build -PGITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_USER=${{ github.actor }}

31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish package to GitHub Packages
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

# - name: Publish artifact
# env:
# CREDENTIALS: -PGITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_USER=${{ github.actor }}

# run: ./gradlew -Pversion=${{github.ref_name}} publish ${CREDENTIALS}
# - name: Gradle bygg av services
# env:
# CREDENTIALS: -PGITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_USER=${{ github.actor }}
# run: ./gradlew build ${CREDENTIALS}

- name: Publish artifact
uses: gradle/gradle-build-action@v3
with:
gradle-version: wrapper
arguments: publish -PGITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_USER=${{ github.actor }}
File renamed without changes.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,39 @@ with an authorization response.
## Building the SDK ##
The SDK is a pure Java code and you can build it using the Eclipse IDE (Kepler or higher) or using the Android Studio IDE. Simply point your IDE's import functionality to the SDK folder and it should be able to import the projects correctly. Make sure you have Java-7 JDK atleast. You could either generate `.jar` files from the SDK and use them in your application projects or directly include the SDK Module in your Android application Project or Eclipse Workspace of the application.

Alternatively you can use the SDK without building the SDK code, if you are using Gradle or Maven, you can directly add the dependency as follows:
(Always check for the latest version [here on mavenCentral](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22sharefile-api%22) since we keep posting enhancements and bug fixes. Alternatively use 3.+ as the version code in dependencies.)

* Gradle Dependency:

dependencies {
compile 'com.citrix:sharefile-api:3.1.0'
}

Gradle on Android might need the addional :

android {

//...
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
//...
}


* Maven Dependence:

<dependency>
<groupId>com.citrix</groupId>
<artifactId>sharefile-api</artifactId>
<version>3.1.0</version>
</dependency>



The project uses Java-7 source compatibility. So in case you see errors like :

* Error:(87, 46) java: diamond operator is not supported in -source 1.6
Expand All @@ -40,6 +73,14 @@ To fix these set the follow settings depend on your IDE:

* Eclipse : `File->Properties->JavaCompiler->Compiler Compliance level to 1.7`

## Proguard Settings ##

If you are using pro-guard, make sure to set the following in the configuration file.

-keepattributes Signature
-keepattributes *Annotation*
-keep class com.citrix.sharefile.api.** { *; }


## Initialise the SDK ##

Expand Down
28 changes: 0 additions & 28 deletions SDKSample/AndroidStudioProject/app/build.gradle

This file was deleted.

Binary file not shown.
3 changes: 0 additions & 3 deletions SDKSample/AndroidStudioProject/app/lint.xml

This file was deleted.

39 changes: 0 additions & 39 deletions SDKSample/AndroidStudioProject/app/proguard.cfg

This file was deleted.

51 changes: 0 additions & 51 deletions SDKSample/AndroidStudioProject/app/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

Loading