forked from nextcloud/android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy gplay artifact on success as own QA flavor
Signed-off-by: tobiasKaminsky <[email protected]>
- Loading branch information
1 parent
d16d297
commit 1776557
Showing
22 changed files
with
2,785 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
#1: LOG_USERNAME | ||
#2: LOG_PASSWORD | ||
#3: DRONE_BUILD_NUMBER | ||
#4: DRONE_PULL_REQUEST | ||
#5: GIT_USERNAME | ||
#6: GIT_TOKEN | ||
|
||
DAV_URL=https://nextcloud.kaminsky.me/remote.php/webdav/android-artifacts/ | ||
PUBLIC_URL=https://www.kaminsky.me/nc-dev/android-artifacts | ||
USER=$1 | ||
PASS=$2 | ||
BUILD=$3 | ||
PR=$4 | ||
GIT_USERNAME=$5 | ||
GIT_TOKEN=$6 | ||
|
||
if ! test -e build/outputs/apk/qa/debug/qa-debug-*.apk ; then | ||
exit 1 | ||
fi | ||
echo "Uploaded artifact to $DAV_URL/$BUILD.apk" | ||
|
||
# delete all old comments, starting with "APK file:" | ||
oldComments=$(curl 2>/dev/null -u $GIT_USERNAME:$GIT_TOKEN -X GET https://api.github.com/repos/nextcloud/android/issues/$PR/comments | jq '.[] | (.id |tostring) + "|" + (.user.login | test("nextcloud-android-bot") | tostring) + "|" + (.body | test("APK file:.*") | tostring)' | grep "true|true" | tr -d "\"" | cut -f1 -d"|") | ||
|
||
echo $oldComments | while read comment ; do | ||
curl 2>/dev/null -u $GIT_USERNAME:$GIT_TOKEN -X DELETE https://api.github.com/repos/nextcloud/android/issues/comments/$comment | ||
done | ||
|
||
apt-get -y install qrencode | ||
|
||
qrencode -o $PR.png "$PUBLIC_URL/$BUILD.apk" | ||
|
||
curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.apk --upload-file build/outputs/apk/qa/debug/qa-debug-*.apk | ||
curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.png --upload-file $PR.png | ||
curl -u $GIT_USERNAME:$GIT_TOKEN -X POST https://api.github.com/repos/nextcloud/android/issues/$PR/comments -d "{ \"body\" : \"APK file: $PUBLIC_URL/$BUILD.apk <br/><br/>  \" }" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "", | ||
"project_id": "" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "", | ||
"android_client_info": { | ||
"package_name": "com.nextcloud.android.beta" | ||
} | ||
}, | ||
"oauth_client": [], | ||
"api_key": [ | ||
{ | ||
"current_key": "" | ||
} | ||
], | ||
"services": { | ||
"analytics_service": { | ||
"status": 1 | ||
}, | ||
"appinvite_service": { | ||
"status": 1, | ||
"other_platform_oauth_client": [] | ||
}, | ||
"ads_service": { | ||
"status": 1 | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions
26
src/qa/java/com/nextcloud/client/di/VariantComponentsModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Nextcloud Android client application | ||
* | ||
* @author Chris Narkiewicz | ||
* Copyright (C) 2919 Chris Narkiewicz <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public | ||
* License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.nextcloud.client.di; | ||
|
||
import dagger.Module; | ||
|
||
@Module | ||
abstract class VariantComponentsModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/** | ||
* Nextcloud Android client application | ||
* | ||
* @author Mario Danic | ||
* @author Chris Narkiewicz Copyright (C) 2017 Mario Danic Copyright (C) 2019 Chris Narkiewicz | ||
* <p> | ||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General | ||
* Public License as published by the Free Software Foundation, either version 3 of the License, or at your option) any | ||
* later version. | ||
* <p> | ||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
* details. | ||
* <p> | ||
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see | ||
* <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.owncloud.android.utils; | ||
|
||
import android.content.Context; | ||
|
||
import com.nextcloud.client.account.UserAccountManager; | ||
import com.nextcloud.client.preferences.AppPreferencesImpl; | ||
import com.owncloud.android.MainApp; | ||
import com.owncloud.android.datamodel.SignatureVerification; | ||
|
||
import java.security.Key; | ||
|
||
public final class PushUtils { | ||
public static final String KEY_PUSH = "push"; | ||
|
||
private PushUtils() { | ||
} | ||
|
||
public static void pushRegistrationToServer( | ||
final UserAccountManager accountManager, | ||
final String pushToken) { | ||
// do nothing | ||
} | ||
|
||
public static void reinitKeys(final UserAccountManager accountManager) { | ||
Context context = MainApp.getAppContext(); | ||
AppPreferencesImpl.fromContext(context).setKeysReInitEnabled(); | ||
} | ||
|
||
public static Key readKeyFromFile(boolean readPublicKey) { | ||
return null; | ||
} | ||
|
||
public static SignatureVerification verifySignature( | ||
final Context context, | ||
final UserAccountManager accountManager, | ||
final byte[] signatureBytes, final byte[] subjectBytes | ||
) { | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Nextcloud Android client application | ||
* | ||
* @author Mario Danic Copyright (C) 2018 Mario Danic | ||
* <p> | ||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General | ||
* Public License as published by the Free Software Foundation, either version 3 of the License, or at your option) any | ||
* later version. | ||
* <p> | ||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
* details. | ||
* <p> | ||
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see | ||
* <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.owncloud.android.utils; | ||
|
||
public class SecurityUtils { | ||
} |
Oops, something went wrong.