Skip to content

Commit

Permalink
revert android build
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed Dec 6, 2023
1 parent a056a85 commit d0075f5
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/cordova/plugin/android/scripts/copy_third_party.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@
// See the License for the specific language governing permissions and
// limitations under the License.

const fs = require('node:fs/promises');
const fs = require('fs/promises');
const path = require('node:path');

const TUN2SOCKS_ANDROID_FOLDER_PATH = path.join('build', 'android');
const ANDROID_LIBS_FOLDER_PATH = path.join('plugins', 'cordova-plugin-outline', 'android', 'libs');
const TUN2SOCKS_ANDROID_FOLDER_PATH = path.join('third_party', 'outline-go-tun2socks', 'android');

module.exports = async function () {
console.log('Copying Tun2socks...');
module.exports = async function (context) {
console.log('Copying Android third party libraries...');
await fs.mkdir(ANDROID_LIBS_FOLDER_PATH, {recursive: true});
await fs.copyFile(
path.join(TUN2SOCKS_ANDROID_FOLDER_PATH, 'tun2socks.aar'),
path.join(ANDROID_LIBS_FOLDER_PATH, 'tun2socks.aar')
);
console.log('Tun2socks copied!');
await fs.cp(path.join(TUN2SOCKS_ANDROID_FOLDER_PATH, 'jni'), path.join(ANDROID_LIBS_FOLDER_PATH, 'obj'), {
recursive: true,
});
};
21 changes: 21 additions & 0 deletions third_party/outline-go-tun2socks/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 eycorsican

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
11 changes: 11 additions & 0 deletions third_party/outline-go-tun2socks/METADATA
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "outline-go-tun2socks"
description: "Go network stack based on go-tun2socks and go-shadowsocks."

third_party {
url {
type: GIT
value: "https://github.com/Jigsaw-Code/outline-go-tun2socks"
}
version: "2.2.1"
last_upgrade_date { year: 2022 month: 4 day: 20 }
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit d0075f5

Please sign in to comment.